Expand description
Command Execution Module
This module provides a structured way to execute and manage commands efficiently, ensuring controlled failure handling and output management.
Structs§
- Bootstrap
Command - Wrapper around
std::process::Command
. - Command
Output - Represents the output of an executed process.
Enums§
- Behavior
OnFailure - What should be done when the command fails.
- Command
Status 🔒 - Represents the current status of
BootstrapCommand
. - Output
Mode - How should the output of a specific stream of the command (stdout/stderr) be handled (whether it should be captured or printed).
Traits§
- Format
Short Cmd - Helper trait to format both Command and BootstrapCommand as a short execution line, without all the other details (e.g. environment variables).
Functions§
- command
- Create a new BootstrapCommand. This is a helper function to make command creation
shorter than
BootstrapCommand::new
.