[−][src]Attribute Macro fire_rs::fire
#[fire]
This macro will generate 4 functions to create cli.
Suppose the fired function is called foo
, then the 4 functions are:
-
foo_app
: parse the inputs offoo
function, return aclap::App
-
foo_input
: receive theclap::App
as input, match with stdin and call thefoo
function -
foo_slice
: similar tofoo_input
, but match with the given slice -
foo_fire
: simply combine thefoo_app
andfoo_input
for convenience