Documentation
¶
Index ¶
- func GetCommandVersion(executable string) (string, error)
- func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
- func RunCommand(command string, env map[string]string, workDir string)
- func RunOptionalCommand(command string, env map[string]string, workDir string) error
- func RunSystemCommand(file string, args string, env map[string]string, workDir string) (string, error)
- func RunSystemCommandPassThru(file string, args string, env map[string]string, workDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommandVersion ¶
GetCommandVersion returns the version of a executable
func GetPlatformSpecificCommand ¶
func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
GetPlatformSpecificCommand returns a platform-specific exec.Cmd
func RunCommand ¶
RunCommand runs a command and forwards all output to console, but will panic/exit if the command fails
func RunOptionalCommand ¶
RunOptionalCommand runs a command and forwards all output to console
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.