ConfigureCommand

Trait ConfigureCommand 

Source
pub trait ConfigureCommand {
    // Required methods
    fn current_dir(&mut self, dir: &Path);
    fn env(&mut self, name: &str, value: &OsStr);
}
Expand description

Common denominator for types that can be used to configure commands for execution in the terminal.

Required Methods§

Source

fn current_dir(&mut self, dir: &Path)

Sets the current directory.

Source

fn env(&mut self, name: &str, value: &OsStr)

Sets an environment variable.

Implementations on Foreign Types§

Source§

impl ConfigureCommand for Command

Source§

fn current_dir(&mut self, dir: &Path)

Source§

fn env(&mut self, name: &str, value: &OsStr)

Implementors§

Source§

impl ConfigureCommand for PtyCommand

Available on crate feature portable-pty only.
Source§

impl ConfigureCommand for StdShell

Source§

impl<S: ConfigureCommand> ConfigureCommand for Echoing<S>