Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandWithFlags ¶
type CommandWithFlags struct { Commands []string Flags map[string][]string PositionalArgs []string AuthRequired bool }
CommandWithFlags is a representation of a command with subcommands that takes a combination of flags, some of which have arguments and some of which don't. It also takes positional parameters, which are inserted after the subcommands and flags when serialized.
func (*CommandWithFlags) ToCommand ¶
func (c *CommandWithFlags) ToCommand() []string
ToCommand produces a list of arguments given a representation of a command with flags.
Click to show internal directories.
Click to hide internal directories.