Documentation ¶
Index ¶
- func CleanAndCopy(dst io.Writer, src io.Reader) error
- func HostCommand(name string, args ...string) *exec.Cmd
- func RunCommand(command string, args []string) (string, error)
- func RunCommandPipe(command string, args []string) (string, error)
- func RunHostCommand(command string, args ...string) (string, error)
- func RunHostCommandSeparateStreams(command string, args ...string) (string, error)
- func RunInteractiveCommand(command string, args []string) error
- func RunInteractiveCommandWithOutput(command string, args []string, output io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanAndCopy ¶ added in v1.23.0
CleanAndCopy removes control characters from output
func HostCommand ¶ added in v1.22.0
HostCommand wraps RunCommand() to inject environment variables. especially DDEV_EXECUTABLE, the full path to running DDEV instance.
func RunCommand ¶
RunCommand runs a command on the host system. returns the stdout of the command and an err
func RunCommandPipe ¶
RunCommandPipe runs a command on the host system Returns combined output as string, and error
func RunHostCommand ¶ added in v1.21.5
RunHostCommand executes a command on the host and returns the combined stdout/stderr results and error
func RunHostCommandSeparateStreams ¶ added in v1.21.5
RunHostCommandSeparateStreams executes a command on the host and returns the stdout and error
func RunInteractiveCommand ¶ added in v1.4.0
RunInteractiveCommand runs a command on the host system interactively, with stdin/stdout/stderr connected Returns error
Types ¶
This section is empty.