Crate command_run
source ·Expand description
Utility for running a command in a subprocess.
The Command
type is a wrapper around the std::process::Command
type that adds a few convenient features:
- Print or log the command before running it
- Optionally return an error if the command is not successful
- The command can be formatted as a command-line string
- The
Command
type can be cloned and its fields are public
Structs§
- A command to run in a subprocess and options for how it is run.
- Error returned by
Command::run
. - The output of a finished process.
Enums§
- Type of error.
- Where log messages go.