pub trait CommandExecutor: Send + Sync {
// Required method
fn execute(&self, invocation: &CommandInvocation) -> Result<CommandOutput>;
}Expand description
Trait implemented by concrete command execution strategies (sync, validated-invocation form).
See vtcode_core::tools::shell::CommandExecutor for the async
string-command counterpart used by core’s ShellRunner.
Required Methods§
fn execute(&self, invocation: &CommandInvocation) -> Result<CommandOutput>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl CommandExecutor for DryRunCommandExecutor
Available on crate feature
dry-run only.impl CommandExecutor for ProcessCommandExecutor
Available on crate feature
std-process only.impl CommandExecutor for PureRustCommandExecutor
Available on crate feature
pure-rust only.impl<E, T> CommandExecutor for EventfulExecutor<E, T>
Available on crate feature
exec-events only.