Documentation
¶
Index ¶
- func CaptureCommand(args ...string) (out []byte, err error)
- func CheckBinary(name string) bool
- func Command(args ...string) error
- func ConfigFetch(key string, defaultValue ...string) (value string, ok bool)
- func ConfigFetchWithDefault(key, defaultValue string) (value string)
- func ConfigSetDefault(key, value string)
- func CopyAndExpandFolder(srcFolder, destFolder string) error
- func ExpandPath(path string) string
- func Filter(vs []string, f func(string) bool) []string
- func LogError(s string, opt ...interface{})
- func LogInfo(s string, opt ...interface{})
- func LogSuccess(s string, opt ...interface{})
- func LogWarning(s string, opt ...interface{})
- func ParseCLIArguments()
- func PrettyExit(code int, s string, opt ...interface{})
- func RecursiveFilesInFolder(folder string) ([]string, error)
- func RequiredConfigFetch(key string) (value string)
- func RequiredConfigKey(key string)
- func RunCommand(cmd *exec.Cmd) error
- func TestCommand(args ...string) bool
- func TimedRun(name string, function Run) error
- type Run
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureCommand ¶
func CheckBinary ¶
func ConfigFetch ¶
EnvFetch fetchs an environment variables. Sets the value to the default value if it does not exist.
func ConfigFetchWithDefault ¶
func ConfigSetDefault ¶
func ConfigSetDefault(key, value string)
ConfigCheck sets environment variable key to value if it is not already set. Used to set default env values
func CopyAndExpandFolder ¶
func ExpandPath ¶
func LogError ¶
func LogError(s string, opt ...interface{})
LogInfo logs log line to terminal in red
func LogSuccess ¶
func LogSuccess(s string, opt ...interface{})
LogInfo logs log line to terminal in green
func LogWarning ¶
func LogWarning(s string, opt ...interface{})
LogInfo logs log line to terminal in yellow
func ParseCLIArguments ¶
func ParseCLIArguments()
func PrettyExit ¶
func RecursiveFilesInFolder ¶
func RequiredConfigFetch ¶
func RequiredConfigKey ¶
func RequiredConfigKey(key string)
RequiredEnv ensures an environment variable is set. If it is not set, it will exit with status code 1
func RunCommand ¶
func TestCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.