#execute-command #execute #macro #instance #command #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

#2396 in Parser implementations

Download history 3191/week @ 2024-11-17 3997/week @ 2024-11-24 4533/week @ 2024-12-01 4029/week @ 2024-12-08 3925/week @ 2024-12-15 2421/week @ 2024-12-22 2252/week @ 2024-12-29 4303/week @ 2025-01-05 3744/week @ 2025-01-12 4381/week @ 2025-01-19 3233/week @ 2025-01-26 4629/week @ 2025-02-02 5973/week @ 2025-02-09 3837/week @ 2025-02-16 4615/week @ 2025-02-23 3674/week @ 2025-03-02

18,558 downloads per month
Used in 97 crates (via 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

~195–620KB
~15K SLoC