command

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package command provides handling to generate new scaffolding, compile, and publish CLI plugins.

Package command provides handling to generate new scaffolding, compile, and publish CLI plugins.

Index

Constants

View Source
const AllTargets cli.Arch = "all"

AllTargets are all the known targets.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(name, description string, dryRun bool) error

AddPlugin generates the skeleton for a new plugin.

func CGOEnabled added in v1.0.0

func CGOEnabled() string

func Compile

func Compile(compileArgs *PluginCompileArgs) error

func Initialize

func Initialize(name, repoType string, dryRun bool) error

Types

type PluginCompileArgs

type PluginCompileArgs struct {
	Version                    string
	SourcePath                 string
	ArtifactsDir               string
	LDFlags                    string
	Tags                       string
	GoFlags                    string
	Match                      string
	Description                string
	GoPrivate                  string
	PluginScopeAssociationFile string
	TargetArch                 []string
	GroupByOSArch              bool
	DebugSymbols               bool
}

PluginCompileArgs contains the values to use for compiling plugins.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL