cmds

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ExitStatusAwareError

type ExitStatusAwareError struct {
	// contains filtered or unexported fields
}

ExitStatusAwareError is a custom error type that carries an exit code

func (*ExitStatusAwareError) Error

func (e *ExitStatusAwareError) Error() string

Error returns the error description

func (*ExitStatusAwareError) ExitStatus

func (e *ExitStatusAwareError) ExitStatus() int

ExitStatus returns the exit status

Jump to

Keyboard shortcuts

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