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§