Documentation ¶
Overview ¶
Package cli provides command-line interface utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearEmptyCategories ¶
func ClearEmptyCategories(flags []cli.Flag)
Types ¶
type FlagStringer ¶
type FlagStringer interface { // PruneEnvVars specifies if `[$ENV_VAR...]` text is removed PruneEnvVars(enable bool) FlagStringer // PruneDefaults specifies if `(default: ...)` text is removed PruneDefaults(enable bool) FlagStringer // PruneDefaultBools specifies if only boolean flag defaults are removed PruneDefaultBools(enable bool) FlagStringer // PruneRepeats specifies if slice flags have their repeated example removed PruneRepeats(enable bool) FlagStringer // DetailsOnNewLines specifies if defaults and env vars are places on new // lines instead of all in one line DetailsOnNewLines(enable bool) FlagStringer // Make produces the cli.FlagStringFunc Make() cli.FlagStringFunc }
FlagStringer is a buildable interface for constructing a pre-configured cli.FlagStringFunc instances
func NewFlagStringer ¶
func NewFlagStringer() FlagStringer
NewFlagStringer creates a new FlagStringer instance, ready to be configured and made into a cli.FlagStringFunc
Click to show internal directories.
Click to hide internal directories.