Documentation ¶
Index ¶
Constants ¶
View Source
const ActionRequestedExitCode = 1
View Source
const FatalErrExitCode = 2
Variables ¶
This section is empty.
Functions ¶
func RequiredArgs ¶
func RequiredArgs(reqArgs ...string) cobra.PositionalArgs
RequiredArgs - required arguments are not available.
Types ¶
type Helper ¶
type Helper[T config.Config] struct { // Config contains globally sourced configuration Config T // Printer is used to print output of a command to stdout. Printer *printer.Printer // Logger is used to provide structured logging for a command. Logger types.Logger // contains filtered or unexported fields }
Helper is passed to every single command and is used by individual subcommands.
Click to show internal directories.
Click to hide internal directories.