Expand description
Command Execution Module
Provides a structured interface for executing and managing commands during bootstrap, with support for controlled failure handling and output management.
This module defines the ExecutionContext
type, which encapsulates global configuration
relevant to command execution in the bootstrap process. This includes settings such as
dry-run mode, verbosity level, and failure behavior.
Structs§
- Bootstrap
Command - Wrapper around
std::process::Command
. - Command
Cache - Command
Cache Key - Command
Output - Represents the output of an executed process.
- Deferred
Command - Execution
Context
Enums§
- Behavior
OnFailure - What should be done when the command fails.
- Command
State 🔒 - 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).
Functions§
- command
- Create a new BootstrapCommand. This is a helper function to make command creation
shorter than
BootstrapCommand::new
.