Documentation ¶
Index ¶
- func Cmnd(name string, arg ...string) *exec.Cmd
- func DefaultSubCommandRun() func(c *cobra.Command, args []string)
- func Execute(executablePath string, cmdArgs, environment []string) error
- func RequireNoArguments(c *cobra.Command, args []string)
- func Run(executablePath string, cmdArgs, environment []string) error
- func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error
- type Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSubCommandRun ¶
DefaultSubCommandRun prints a command's help string to the specified output if no arguments (sub-commands) are provided, or a usage error otherwise.
func RequireNoArguments ¶
RequireNoArguments exits with a usage error if extra arguments are provided.
Types ¶
type Command ¶
func NewCmdPlugin ¶
func (*Command) AddCommands ¶
func (*Command) AddPlugins ¶
func (c *Command) AddPlugins()
func (*Command) HandlePluginCommand ¶
HandlePluginCommand receives a pluginHandler and command-line arguments and attempts to find a plugin executable on the PATH that satisfies the given arguments.
Click to show internal directories.
Click to hide internal directories.