cmd

package
v0.0.0-...-990f712 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(message string) bool

Confirm returns true if the user confirms or if the yes flag is present.

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.

func Fail

func Fail(err error)

Fail exits the program with a standardized error message.

func FailIfError

func FailIfError(err error)

FailIfError exits the program with a standardized error message if an error occurred.

func FailOrOK

func FailOrOK(err error)

FailOrOK displays a failure message if there's an error otherwise displays "OK".

Types

This section is empty.

Jump to

Keyboard shortcuts

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