Documentation
¶
Index ¶
- func GetCommandVersion(binary string) (string, error)
- func GetFreePort() (int, error)
- func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
- func IsFreePort(port int) bool
- func RunAPICommand(command string, env map[string]string, projectDir string, workDir string, ...) (stdout string, stderr string, err error)
- func RunCommand(command string, env map[string]string, workDir string)
- func RunCommandAndGetOutput(command string, env map[string]string, workDir string) (string, error)
- func RunOptionalCommand(command string, env map[string]string, workDir 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 an executable
func GetFreePort ¶
GetFreePort asks the kernel for a free open port that is ready to use.
func GetPlatformSpecificCommand ¶
func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
GetPlatformSpecificCommand returns a platform-specific exec.Cmd
func IsFreePort ¶
IsFreePort asks the kernel if the requested port is available or not
func RunAPICommand ¶
func RunAPICommand(command string, env map[string]string, projectDir string, workDir string, capture bool, ports []int) (stdout string, stderr string, err error)
RunAPICommand gets called from actions or the api to execute commands
func RunCommand ¶
RunCommand runs a required command and forwards all output to console, but will panic/exit if the command fails
func RunCommandAndGetOutput ¶
RunCommandAndGetOutput runs a command and returns the full response / command output
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.