exec

package
v1.22.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostCommand added in v1.22.0

func HostCommand(name string, args ...string) *exec.Cmd

HostCommand wraps RunCommand() to inject environment variables. especially DDEV_EXECUTABLE, the full path to running DDEV instance.

func RunCommand

func RunCommand(command string, args []string) (string, error)

RunCommand runs a command on the host system. returns the stdout of the command and an err

func RunCommandPipe

func RunCommandPipe(command string, args []string) (string, error)

RunCommandPipe runs a command on the host system Returns combined output as string, and error

func RunHostCommand added in v1.21.5

func RunHostCommand(command string, args ...string) (string, error)

RunHostCommand executes a command on the host and returns the combined stdout/stderr results and error

func RunHostCommandSeparateStreams added in v1.21.5

func RunHostCommandSeparateStreams(command string, args ...string) (string, error)

RunHostCommandSeparateStreams executes a command on the host and returns the stdout and error

func RunInteractiveCommand added in v1.4.0

func RunInteractiveCommand(command string, args []string) error

RunInteractiveCommand runs a command on the host system interactively, with stdin/stdout/stderr connected Returns error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL