#execute-command #execute #command #instance #macro #programs #command-args

execute-command-macro

Create Command instances using the command! macro or the command_args! marco

10 releases

0.1.9 Nov 20, 2023
0.1.8 May 1, 2022
0.1.7 Mar 10, 2022
0.1.6 Apr 21, 2021
0.1.2 Jun 27, 2020

#2562 in Parser implementations

Download history 3685/week @ 2024-02-03 4255/week @ 2024-02-10 4348/week @ 2024-02-17 4144/week @ 2024-02-24 4433/week @ 2024-03-02 4080/week @ 2024-03-09 5280/week @ 2024-03-16 3939/week @ 2024-03-23 4836/week @ 2024-03-30 4356/week @ 2024-04-06 5234/week @ 2024-04-13 3635/week @ 2024-04-20 3203/week @ 2024-04-27 3629/week @ 2024-05-04 3542/week @ 2024-05-11 2631/week @ 2024-05-18

13,475 downloads per month
Used in execute

MIT license

5KB

Execute Command Macro

CI

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");

Crates.io

https://crates.io/crates/execute

Documentation

https://docs.rs/execute

License

MIT


lib.rs:

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");

Dependencies

~315–770KB
~18K SLoC