Documentation
¶
Overview ¶
Package command contains the basic definitions of a command for the command line tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// Run runs the command. The args are the arguments after the command name.
// Run returns the exit code to be used.
Run func(ctx context.Context, args []string) int
// UsageLine is the one-line usage message.
// The first word in the line is taken to be the command name.
UsageLine string
// Short is the short description shown in the 'badwolf help' output.
Short string
// Long is the long message shown in the 'badwolf help <this-command>' output.
Long string
}
Command is an implementation of a BadWolf command. It is model after the go tool (https://github.com/golang/go/tree/master/src/cmd/go).
Click to show internal directories.
Click to hide internal directories.