Documentation ¶
Index ¶
Constants ¶
const ( ExitUnknownError = 1 // for compatibility with existing exit code ExitIncorrectUsage = 64 ExitDataError = 65 // some format error with input data // below here are non-zero exit codes that don't indicate an error with istioctl itself ExitAnalyzerFoundIssues = 79 // istioctl analyze found issues, for CI/CD )
Values should try to use sendmail-style values as in <sysexits.h> See e.g. https://man.openbsd.org/sysexits.3 or `less /usr/includes/sysexits.h` if you're on Linux
Picking the right range is tricky--there are a lot of reserved ones (see https://www.tldp.org/LDP/abs/html/exitcodes.html#EXITCODESREF) and then some used by convention (see sysexits).
The intention here is to use 64-78 in a way that matches the attempt in sysexits to signify some error running istioctl, and use 79-125 as custom error codes for other info that we'd like to use to pass info on.
const (
FlagCharts = "charts"
)
Variables ¶
This section is empty.
Functions ¶
func ConfigAndEnvProcessing ¶
func ConfigAndEnvProcessing() error
ConfigAndEnvProcessing uses spf13/viper for overriding CLI parameters
func GetExitCode ¶
func GetRootCmd ¶
GetRootCmd returns the root of the cobra command-tree.
Types ¶
This section is empty.