Crate execute_command_macro
source ·Expand description
Execute Command Macro
Create Command
instances using the command!
macro or the command_args!
macro.
Also see execute
.
Examples
#[macro_use] extern crate execute_command_macro;
let command = command!("program arg1 arg2 'arg 3' -opt1 -opt2");
#[macro_use] extern crate execute_command_macro;
let command = command_args!("program", "arg1", "arg2", "-opt1", "-opt2");
Macros
- Generate the statements at compile time to create a
Command
instance by a command string. - Create a
Command
instance by inputting args separately.