Struct conductor::exec::Command
[−]
[src]
pub struct Command { pub command: OsString, pub args: Vec<OsString>, }
A command which can be executed.
Fields
command: OsString
The command to execute.
args: Vec<OsString>
The arguments to pass to the command.
Methods
impl Command
[src]
fn new<S: AsRef<OsStr>>(command: S) -> Command
Create a new Command
object.
fn with_args<S: AsRef<OsStr>>(self, args: &[S]) -> Command
Add arguments to a Command
object. This is meant to be chained
immediately after new
, and it consumes self
and returns it.