Documentation
¶
Index ¶
- Variables
- func Command(command string) *exec.Cmd
- func FormatPlatformCommand(command, platform, shell string) (string, error)
- func FormatShellCommand(command, shell string) (string, error)
- func PrepareCommand(command string, platform string, shell string, fullEnv bool, ...) (*exec.Cmd, error)
- func SplitCommand(command string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedShell = fmt.Errorf("unsupported shell") ErrUnsupportedPlatform = errors.New("unsupported platform") )
Functions ¶
func FormatPlatformCommand ¶
FormatPlatformCommand formats a command for a specific platform and shell
func FormatShellCommand ¶
FormatShellCommand formats a shell command
func PrepareCommand ¶
func PrepareCommand(command string, platform string, shell string, fullEnv bool, env map[string]string, workDir string, stdin io.Reader, stdoutWriter io.Writer, stderrWriter io.Writer) (*exec.Cmd, error)
PrepareCommand prepares a command to be executed
func SplitCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.