Module exec

Source
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§

BootstrapCommand
Wrapper around std::process::Command.
CommandCache
CommandCacheKey
CommandOutput
Represents the output of an executed process.
DeferredCommand
ExecutionContext

Enums§

BehaviorOnFailure
What should be done when the command fails.
CommandState 🔒
CommandStatus 🔒
Represents the current status of BootstrapCommand.
OutputMode
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.