pub struct BashShellProvider { /* private fields */ }Expand description
Bash shell provider implementation. Provides command building and environment overrides for bash/zsh shells.
Implementations§
Source§impl BashShellProvider
impl BashShellProvider
Sourcepub fn get_shell_path(&self) -> &str
pub fn get_shell_path(&self) -> &str
Get shell path
Sourcepub fn is_detached(&self) -> bool
pub fn is_detached(&self) -> bool
Whether the shell is detached
Sourcepub async fn build_exec_command(
&self,
command: &str,
id: usize,
sandbox_tmp_dir: Option<&str>,
use_sandbox: bool,
) -> Result<ShellExecCommand, ShellError>
pub async fn build_exec_command( &self, command: &str, id: usize, sandbox_tmp_dir: Option<&str>, use_sandbox: bool, ) -> Result<ShellExecCommand, ShellError>
Build the full command string including all shell-specific setup. Includes: source snapshot, session env, disable extglob, eval-wrap, pwd tracking.
Sourcepub fn get_spawn_args(&self, command_string: &str) -> Vec<String>
pub fn get_spawn_args(&self, command_string: &str) -> Vec<String>
Get shell args for spawn
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BashShellProvider
impl RefUnwindSafe for BashShellProvider
impl Send for BashShellProvider
impl Sync for BashShellProvider
impl Unpin for BashShellProvider
impl UnsafeUnpin for BashShellProvider
impl UnwindSafe for BashShellProvider
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