Documentation ¶
Index ¶
- func GetCommandOutput(executable string, argument []string, dir string) string
- func Log(message string)
- func LogDebug(message string)
- func LogError(message string)
- func LogImportant(message string)
- func LogNotice(message string)
- func LogRaw(message string)
- func LogSeparator()
- func RunAsyncCommand(executable string, argument []string, dir string, wg *sync.WaitGroup)
- func RunAsyncCommandWithEnvironment(executable string, argument []string, dir string, wg *sync.WaitGroup, ...)
- func RunCommand(executable string, argument []string, dir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommandOutput ¶ added in v1.1.0
GetCommandOutput is a helper function that runs system commands and returns their output as string
func LogImportant ¶
func LogImportant(message string)
LogImportant prints an important-level log message.
func LogNotice ¶ added in v1.1.1
func LogNotice(message string)
LogNote prints a slightly elevated log message.
func RunAsyncCommand ¶
RunAsyncCommand is meant for execution as a goroutine and requires a WaitGroup. It also does not print directly to stdout, but does so only when the command has terminated.
func RunAsyncCommandWithEnvironment ¶
func RunAsyncCommandWithEnvironment(executable string, argument []string, dir string, wg *sync.WaitGroup, env []string)
RunAsyncCommandWithEnvironment adds functionality for specifying the environment of a process to be run. This enables commands like `FOO=BAR mybinary`.
func RunCommand ¶
RunCommand is a helper function that runs system commands and prints their output to stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.