#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

#2520 in Parser implementations

Download history 2971/week @ 2023-12-18 1441/week @ 2023-12-25 3165/week @ 2024-01-01 3995/week @ 2024-01-08 4443/week @ 2024-01-15 3845/week @ 2024-01-22 3550/week @ 2024-01-29 3892/week @ 2024-02-05 4125/week @ 2024-02-12 4138/week @ 2024-02-19 4303/week @ 2024-02-26 4529/week @ 2024-03-04 4136/week @ 2024-03-11 5113/week @ 2024-03-18 3953/week @ 2024-03-25 5033/week @ 2024-04-01

18,584 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