Struct cmd_lib::CmdEnv [−][src]
pub struct CmdEnv { /* fields omitted */ }
Environment for builtin or custom commands
Implementations
impl CmdEnv
[src]
impl CmdEnv
[src]pub fn args(&self) -> &[String]
[src]
Returns the arguments for this command
pub fn var(&self, key: &str) -> Option<&String>
[src]
Fetches the environment variable key for this command
pub fn current_dir(&self) -> &Path
[src]
Returns the current working directory for this command
pub fn stdin(&mut self) -> impl Read + '_
[src]
Returns a new handle to the standard input for this command
pub fn stdout(&mut self) -> impl Write + '_
[src]
Returns a new handle to the standard output for this command
pub fn stderr(&mut self) -> impl Write + '_
[src]
Returns a new handle to the standard error for this command
Auto Trait Implementations
impl RefUnwindSafe for CmdEnv
impl RefUnwindSafe for CmdEnv
impl UnwindSafe for CmdEnv
impl UnwindSafe for CmdEnv