Documentation
¶
Overview ¶
This is the Command struct used by the noms utility. It is packaged in a separate util can be used by other programs as well.
This is the Help facility used by the noms utility. It is packaged in a separate util can be used by other programs as well.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// Run runs the command.
// The args are the arguments after the command name.
Run func(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 'help' output.
Short string
// Long is the long message shown in the 'help <this-command>' output.
Long string
// Flag is a set of flags specific to this command.
Flags func() *flag.FlagSet
// Nargs is the minimum number of arguments expected after flags, specific to this command.
Nargs int
}
Click to show internal directories.
Click to hide internal directories.