pub struct PowerShellProvider { /* private fields */ }Expand description
PowerShell shell provider implementation.
Implementations§
Source§impl PowerShellProvider
impl PowerShellProvider
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(
&mut self,
command: &str,
id: usize,
sandbox_tmp_dir: Option<&str>,
use_sandbox: bool,
) -> Result<ShellExecCommand, ShellError>
pub async fn build_exec_command( &mut self, command: &str, id: usize, sandbox_tmp_dir: Option<&str>, use_sandbox: bool, ) -> Result<ShellExecCommand, ShellError>
Build the full command string including all PowerShell-specific setup.
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
Sourcepub async fn get_environment_overrides(&self) -> HashMap<String, String>
pub async fn get_environment_overrides(&self) -> HashMap<String, String>
Get extra env vars for this shell type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerShellProvider
impl RefUnwindSafe for PowerShellProvider
impl Send for PowerShellProvider
impl Sync for PowerShellProvider
impl Unpin for PowerShellProvider
impl UnsafeUnpin for PowerShellProvider
impl UnwindSafe for PowerShellProvider
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