package
3.25.0-alpha
Repository: https://github.com/ooni/probe-cli.git
Documentation: pkg.go.dev

# Packages

Package shellxtesting supports shellx testing.

# Functions

CopyFile copies [source] to [dest].
NewArgv creates a new [Argv] from the given command and arguments.
Output is like [OutputQuiet] except that it logs the command to be executed and the environment variables specific to this command.
OutputCommandLine is like OutputCommandLineQuiet but logs the command to execute as well as the command-specific environment variables.
OutputCommandLineQuiet is like [OutputQuiet] but takes a command line as argument.
OutputEx implements [Output] and [OutputQuiet].
OutputQuiet is like [RunQuiet] except that, in case of success, it captures the standard output and returns it to the caller.
ParseCommandLine creates an instance of [Argv] from the given command line.
QuotedCommandLineUnsafe returns a quoted command line.
Run is like [RunQuiet] except that it also logs the command to exec, the environment variables specific to this command, the text logged to stdout and stderr.
RunCommandLine is like [RunCommandLineQuiet] but logs the command to execute as well as the command-specific environment variables.
RunCommandLineQuiet is like [RunQuiet] but takes a command line as argument.
RunEx implements [Run] and [RunQuiet].
RunQuiet runs the given command without emitting any output.

# Constants

FlagShowStdoutStderr enables connecting the child's stdout and stderr to the current program's stdout and stderr.

# Variables

ErrNoCommandToExecute means that the command line is empty.
Library contains the default dependencies.

# Structs

Argv contains the complete argv.
Config contains config for executing programs.
Envp is the environment in which we execute commands.
StdlibDependencies contains the stdlib implementation of the [Dependencies].

# Interfaces

Dependencies is the library on which this package depends.