# Functions
AddCleanFlags add clean flags.
BehaviorOnFatal allows you to override the default behavior when a fatal error occurs, which is to call os.Exit(code).
CheckDiffErr prints a user-friendly error to STDERR and exits with a non-zero and non-one exit code.
CheckErr prints a user-friendly error to STDERR and exits with a non-zero exit code.
CombineRequestErr combines the http response error and error in errs array.
DefaultBehaviorOnFatal allows you to undo any previous override.
DefaultSubCommandRun prints a command's help string to the specified output if no arguments (sub-commands) are provided, or a usage error otherwise.
GetFlagBool returns the value of the given flag.
GetFlagDuration return the value of the given flag.
GetFlagInt returns the value of the given flag.
GetFlagInt32 returns the value of the given flag.
GetFlagInt64 returns the value of the given flag.
GetFlagString returns the value of the given flag.
GetFlagStringArray can be used to accept multiple argument with flag repetition (e.g.
GetFlagStringSlice can be used to accept multiple argument with flag repetition (e.g.
IsFilenameSliceEmpty checkes where filenames and directory are both zero value.
IsSiblingCommandExists receives a pointer to a cobra command and a target string.
ManualStrip is used for dropping comments from a YAML file.
MultilineError returns a string representing an error that splits sub errors into their own lines.
MultipleErrors returns a newline delimited string containing the prefix and referenced errors in standard form.
No description provided by the author
No description provided by the author
No description provided by the author
RequireNoArguments exits with a usage error if extra arguments are provided.
StandardErrorMessage translates common errors into a human readable message, or returns false if the error is not one of the recognized types.
No description provided by the author
UsageErrorf returns error with command path.
Warning write warning message to io.Writer.
# Constants
DefaultErrorExitCode defines the default exit code.
# Variables
ErrExit may be passed to CheckError to instruct it to output nothing but exit with status code 1.
# Structs
MatchVersionFlags is for setting the "match server version" function.
ValidateOptions defines the validate options.
# Interfaces
Factory provides abstractions that allow the IAM command to be extended across multiple types of resources and different API sets.