cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: MIT Imports: 13 Imported by: 2

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.

func GetUserHelp

func GetUserHelp(err error) string

GetUserHelp returns the user help associated with an error.

func HasUserHelp

func HasUserHelp(err error) bool

HasUserHelp returns true if an error has a help message for the user.

func UserError

func UserError(err error, help string) error

UserError wraps the given error and makes it into a not found one

Types

This section is empty.

Jump to

Keyboard shortcuts

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