Skip to main content

Module exec

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 ๐Ÿ”’
CommandFingerprint ๐Ÿ”’
CommandOutput ๐Ÿ”’
Represents the output of an executed process.
CommandProfile ๐Ÿ”’
CommandProfiler ๐Ÿ”’
DeferredCommand ๐Ÿ”’
ExecutionContext ๐Ÿ”’
StreamingCommand ๐Ÿ”’

Enumsยง

BehaviorOnFailure ๐Ÿ”’
What should be done when the command fails.
CommandState ๐Ÿ”’
CommandStatus ๐Ÿ”’
Represents the current status of BootstrapCommand.
ExecutionTrace ๐Ÿ”’
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.