Documentation ¶
Index ¶
- func DieOnError(err error)
- func Error(err error)
- func FileExists(filePath string) bool
- func Info(msg string)
- func Infof(format string, a ...interface{})
- func IsQuietModeEnabled() bool
- func ReadJSONFile(fileName string, obj interface{}) error
- func SetQuietMode(quiet bool)
- func Warn(msg string)
- func Warnf(format string, a ...interface{})
- type Progress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DieOnError ¶
func DieOnError(err error)
DieOnError check for any error and if so displays it before exiting with an error code
func FileExists ¶
FileExists returns true if the given file path exists
func Infof ¶
func Infof(format string, a ...interface{})
Infof displays a formatted message to the user
func IsQuietModeEnabled ¶
func IsQuietModeEnabled() bool
IsQuietModeEnabled returns true if the quiet mode is enabled
func ReadJSONFile ¶
func SetQuietMode ¶
func SetQuietMode(quiet bool)
SetQuietMode restricts the output messages printed to the user
Types ¶
Click to show internal directories.
Click to hide internal directories.