cmd

package
v0.0.0-...-b1ee384 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 38 Imported by: 2

Documentation

Index

Constants

View Source
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.

View Source
const (
	FlagCharts = "charts"
)

Variables

This section is empty.

Functions

func ConfigAndEnvProcessing

func ConfigAndEnvProcessing() error

ConfigAndEnvProcessing uses spf13/viper for overriding CLI parameters

func ConfigureLogging

func ConfigureLogging(_ *cobra.Command, _ []string) error

func GetExitCode

func GetExitCode(e error) int

func GetRootCmd

func GetRootCmd(args []string) *cobra.Command

GetRootCmd returns the root of the cobra command-tree.

Types

This section is empty.

Directories

Path Synopsis
Command istioctl is a Istio configuration command line utility.
Command istioctl is a Istio configuration command line utility.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL