Documentation
¶
Overview ¶
Package charm is minimilast CLI framework inspired by cobra and urfave/cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NeedHelp = errors.New("help") ErrNoRun = errors.New("no run method") )
View Source
var ( HelpFlag = "h" HiddenFlag = "hidden" )
Functions ¶
func FormatParagraph ¶
Types ¶
type Spec ¶
type Spec struct { Name string Usage string Short string Long string New Constructor // Hidden hides this command from help. Hidden bool // Hidden flags (comma-separated) marks these flags as hidden. HiddenFlags string // Redacted flags (comma-separated) marks these flags as redacted, // where a flag is shown (if not hidden) but its default value is hidden, // e.g., as is useful for a password flag. RedactedFlags string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.