cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessCode = ExitCode(0)
	ErrorCode   = ExitCode(1)
	MisuseCode  = ExitCode(2)
)

Variables

This section is empty.

Functions

func DisplayAsDefault

func DisplayAsDefault(valueTmpl string, v interface{})

func DisplayAsJSON

func DisplayAsJSON(v interface{})

func DisplayError

func DisplayError(err error)

func DisplayUsage

func DisplayUsage(exitCode ExitCode, usage string)

func IsTerminal

func IsTerminal(f *os.File) (value bool, err error)

Types

type ExitCode

type ExitCode int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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