Module exec

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

BootstrapCommand
Wrapper around std::process::Command.
CommandOutput
Represents the output of an executed process.

Enums§

BehaviorOnFailure
What should be done when the command fails.
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).

Traits§

FormatShortCmd
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.