Skip to main content

shell_tunnel/execution/
mod.rs

1//! Command execution engine.
2//!
3//! This module provides command execution capabilities:
4//! - Synchronous and asynchronous execution
5//! - Timeout handling
6//! - Streaming output
7//!
8//! # Example
9//!
10//! ```no_run
11//! use shell_tunnel::execution::{Command, execute_simple};
12//!
13//! // Simple one-shot execution
14//! let result = execute_simple("echo hello").unwrap();
15//! println!("Output: {}", result.text_output);
16//!
17//! // Command with options
18//! use std::time::Duration;
19//! let cmd = Command::new("cargo build")
20//!     .timeout(Duration::from_secs(60))
21//!     .capture_output(true);
22//! ```
23
24mod command;
25mod executor;
26mod pipe;
27mod result;
28
29pub use command::{Command, CommandBuilder};
30pub use executor::{
31    execute_simple, execute_with_timeout, CommandExecutor, DEFAULT_TIMEOUT, MAX_TIMEOUT,
32    MIN_TIMEOUT,
33};
34pub use result::{ExecutionResult, OutputChunk, OutputSource};