Documentation ¶
Index ¶
- func Excuse() string
- func ExecuteCliCommand(cliCommand *exec.Cmd, silent bool) (err error)
- func FileExists(name string) bool
- func GetCaller() (string, string)
- func GetDateTimestamp() string
- func PrintDebug(debug string)
- func PrintError(error string)
- func PrintFatal(error string)
- func PrintInformation(info string)
- func PrintMessage(message string)
- func PrintSubTitle(subtitle string)
- func PrintSuccess(success string)
- func PrintTitle(title string)
- func PrintType(name string, obj interface{})
- func PrintWarning(warning string)
- func ReadLine(msg string) (string, error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCliCommand ¶
ExecuteCliCommand - wrapper : runs a bash command, output is stdout
Example ¶
cliCommand := exec.Command("echo", "hello", "world") _ = ExecuteCliCommand(cliCommand, false)
Output: hello world
func FileExists ¶
FileExists - reports whether the named file or directory exists.
func GetDateTimestamp ¶
func GetDateTimestamp() string
GetDateTimestamp - returns nicely formated timestamp
func PrintInformation ¶
func PrintInformation(info string)
PrintInformation - prints nicely formated info message
func PrintMessage ¶
func PrintMessage(message string)
PrintMessage - prints nicely formated message
Example ¶
PrintMessage("test")
Output: 💬 test
func PrintSubTitle ¶
func PrintSubTitle(subtitle string)
PrintSubTitle - prints nicely formated subtitle
Example ¶
PrintSubTitle("test")
Output: test ░░░░
func PrintSuccess ¶
func PrintSuccess(success string)
PrintSuccess - prints nicely formated success info
func PrintTitle ¶
func PrintTitle(title string)
PrintTitle - prints nicely formated title
Example ¶
PrintTitle("test")
Output: ░░░░░░░░ ░ test ░ ░░░░░░░░
func PrintType ¶ added in v0.3.0
func PrintType(name string, obj interface{})
PrintType - prints the type of a interface
func PrintWarning ¶
func PrintWarning(warning string)
PrintWarning - prints nicely formated warn message
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.