1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # Command Execution Module
//!
//! ## What
//! This module provides a comprehensive framework for executing external commands,
//! managing command output, and handling command queues with priority ordering.
//! It offers abstractions for synchronous and streaming command execution with
//! proper error handling, timeouts, and resource management.
//!
//! ## How
//! The module is organized into several components:
//! - `Command` and `CommandBuilder`: For creating and configuring commands
//! - `CommandExecutor`: For executing commands and capturing their output
//! - `CommandOutput`: For structured access to command results
//! - `CommandStream`: For real-time streaming of command output
//! - `CommandQueue`: For prioritized, concurrent command execution
//!
//! All operations follow a consistent error handling pattern and provide
//! timeouts and resource cleanup to ensure reliability.
//!
//! ## Why
//! Running external processes is error-prone and requires careful management
//! of resources, concurrency, and error handling. This module encapsulates these
//! concerns behind a clean API that promotes safe practices and provides
//! consistent behavior across different execution patterns.
pub use ;
pub use Executor;