pub struct ShellExecutor<'a> { /* private fields */ }Expand description
Executor for shell steps.
Runs a shell command and captures stdout, stderr, and exit code.
Implementations§
Source§impl<'a> ShellExecutor<'a>
impl<'a> ShellExecutor<'a>
Sourcepub fn new(config: &'a ShellConfig) -> Self
pub fn new(config: &'a ShellConfig) -> Self
Create a new shell executor from a config reference.
Trait Implementations§
Source§impl StepExecutor for ShellExecutor<'_>
impl StepExecutor for ShellExecutor<'_>
Source§async fn execute(
&self,
_provider: &Arc<dyn AgentProvider>,
) -> Result<StepOutput, EngineError>
async fn execute( &self, _provider: &Arc<dyn AgentProvider>, ) -> Result<StepOutput, EngineError>
Execute the step and return structured output. Read more
Auto Trait Implementations§
impl<'a> Freeze for ShellExecutor<'a>
impl<'a> RefUnwindSafe for ShellExecutor<'a>
impl<'a> Send for ShellExecutor<'a>
impl<'a> Sync for ShellExecutor<'a>
impl<'a> Unpin for ShellExecutor<'a>
impl<'a> UnsafeUnpin for ShellExecutor<'a>
impl<'a> UnwindSafe for ShellExecutor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more