util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultErrorExitCode = 1
)

Variables

View Source
var (
	ErrExit         = fmt.Errorf("exit")
	FatalErrHandler = fatal
)

Functions

func CheckErr

func CheckErr(err error)

func DefaultSubCommandRun

func DefaultSubCommandRun(out io.Writer) func(cmd *cobra.Command, args []string)

Types

type ErrHandler

type ErrHandler func(string, int)

Jump to

Keyboard shortcuts

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