Skip to main content

ProcessShell

Struct ProcessShell 

Source
pub struct ProcessShell {
    pub config: ShellConfig,
}
Expand description

Production shell: delegates to the free functions in this module.

Fields§

§config: ShellConfig

Shell execution configuration (e.g. overlay viewport height).

Trait Implementations§

Source§

impl Default for ProcessShell

Source§

fn default() -> ProcessShell

Returns the “default value” for a type. Read more
Source§

impl Shell for ProcessShell

Source§

fn run_command( &self, label: &str, program: &str, args: &[&str], output: &mut dyn Output, mode: OutputMode, ) -> Result<CommandResult, ShellError>

Run program with args, displaying progress under label. Read more
Source§

fn shell_exec( &self, script: &str, output: &mut dyn Output, mode: OutputMode, ) -> Result<CommandResult, ShellError>

Run an arbitrary shell script string (passed to bash -c / powershell -Command).
Source§

fn command_exists(&self, program: &str) -> bool

Return true when program can be found on PATH.
Source§

fn command_output( &self, program: &str, args: &[&str], ) -> Result<String, ShellError>

Run program args and return its captured stdout as a trimmed String.
Source§

fn exec_capture( &self, cmd: &str, _output: &mut dyn Output, _mode: OutputMode, ) -> Result<CommandResult, ShellError>

Run a shell command, capturing stdout/stderr silently without display. In dry-run mode (DryRunShell), logs the command and returns success without executing.
Source§

fn exec_interactive( &self, cmd: &str, _output: &mut dyn Output, _mode: OutputMode, ) -> Result<(), ShellError>

Run a shell command with inherited stdio (for interactive flows like aws sso login). In dry-run mode (DryRunShell), logs the command and returns success without executing.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.