pub struct ShellCommandRunner { /* private fields */ }Expand description
CommandRunner that spawns a real shell process.
verbose controls whether the script’s raw stdout/stderr is streamed
through to the user’s terminal. Regardless of the flag, lines matching
the # status: convention on stdout are always surfaced as live progress
markers, and captured output is returned via CommandOutput for
callers that want it.
Implementations§
Trait Implementations§
Source§impl CommandRunner for ShellCommandRunner
impl CommandRunner for ShellCommandRunner
Source§fn run_bytes(
&self,
executable: &str,
arguments: &[String],
) -> Result<CommandOutputBytes>
fn run_bytes( &self, executable: &str, arguments: &[String], ) -> Result<CommandOutputBytes>
Override of the default trait impl: reads stdout as raw
bytes (no from_utf8_lossy decode), so binary payloads
from age / gpg whole-file decryption survive verbatim.
Stderr is still buffered as text via the same drainer
pattern run uses — gpg and age both emit
human-readable diagnostics.
fn run(&self, executable: &str, arguments: &[String]) -> Result<CommandOutput>
Auto Trait Implementations§
impl Freeze for ShellCommandRunner
impl RefUnwindSafe for ShellCommandRunner
impl Send for ShellCommandRunner
impl Sync for ShellCommandRunner
impl Unpin for ShellCommandRunner
impl UnsafeUnpin for ShellCommandRunner
impl UnwindSafe for ShellCommandRunner
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