Documentation ¶
Index ¶
- func AddCommand(name string, help string, synopsis string, run RunArgs) error
- func GetCPui() *cli.ColoredPrefixedUi
- func GetInput(name string) string
- func GetInputSecret(name string) string
- func Init(app, version string)
- func Run()
- func RunOnce(argv []string) (int, error)
- func SwitchPrefix(prefix string)
- type Function
- type RunArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPui ¶
func GetCPui() *cli.ColoredPrefixedUi
func GetInputSecret ¶
func SwitchPrefix ¶
func SwitchPrefix(prefix string)
Types ¶
type Function ¶
type Function struct { // Help should return long-form help text that includes the command-line // usage, a brief few sentences explaining the function of the command, // and the complete list of flags the command accepts. Help_ string // Run should run the actual command with the given CLI instance and // command-line arguments. It should return the exit status when it is // finished. // // There are a handful of special exit codes this can return documented // above that change behavior. RunArgs_ RunArgs // Synopsis should return a one-line, short synopsis of the command. // This should be less than 50 characters ideally. Synopsis_ string }
Click to show internal directories.
Click to hide internal directories.