Documentation ¶
Index ¶
- func Action(actionFunc cli.ActionFunc) cli.ActionFunc
- func ConfigureLoggingFlags(shouldHide bool) []cli.Flag
- func ConfiguredAction(actionFunc cli.ActionFunc) cli.ActionFunc
- func ConfiguredActionWithWarnings(actionFunc func(*cli.Context, string) error) cli.ActionFunc
- func RemovedCommand(name string) *cli.Command
- func UsageError(format string, args ...interface{}) error
- func WithErrorHandler(actionFunc cli.ActionFunc) cli.ActionFunc
- type BuildInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLoggingFlags ¶
func ConfigureLoggingFlags(shouldHide bool) []cli.Flag
func ConfiguredAction ¶
func ConfiguredAction(actionFunc cli.ActionFunc) cli.ActionFunc
func ConfiguredActionWithWarnings ¶
Just like ConfiguredAction, but accepts a second parameter with configuration warnings.
func RemovedCommand ¶
func RemovedCommand(name string) *cli.Command
func UsageError ¶
func WithErrorHandler ¶
func WithErrorHandler(actionFunc cli.ActionFunc) cli.ActionFunc
Ensures exit with error code if actionFunc returns an error
Types ¶
Click to show internal directories.
Click to hide internal directories.