[][src]Attribute Macro fire_rs_core::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 of foo function, return a clap::App

  • foo_input: receive the clap::App as input, match with stdin and call the foo function

  • foo_slice: similar to foo_input, but match with the given slice

  • foo_fire: simply combine the foo_app and foo_input for convenience