Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInteractive ¶
func IsInteractive() bool
IsInteractive returns true if stdin is a terminal (interactive mode)
func NeedsMissingArg ¶
NeedsMissingArg returns true if we need to prompt for a missing argument
func RequireArgs ¶
func RequireArgs(n int, argNames string) cobra.PositionalArgs
RequireArgs returns an Args validator that allows missing args for interactive mode When args are missing and we're in an interactive terminal, it returns nil so the command can handle interactive input in RunE
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.