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

#2475 in Parser implementations

Download history 4154/week @ 2024-07-24 5418/week @ 2024-07-31 4523/week @ 2024-08-07 4751/week @ 2024-08-14 4802/week @ 2024-08-21 4649/week @ 2024-08-28 4890/week @ 2024-09-04 5694/week @ 2024-09-11 5710/week @ 2024-09-18 5715/week @ 2024-09-25 4645/week @ 2024-10-02 4649/week @ 2024-10-09 5204/week @ 2024-10-16 5274/week @ 2024-10-23 3837/week @ 2024-10-30 3519/week @ 2024-11-06

18,814 downloads per month
Used in 96 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

~235–680KB
~16K SLoC