Fire-rs
Use the attribute macro to convert a ordinary function into a command line application (aka cli
).
Inspired by Python-fire
Usage
use fire;
Run cargo run -- 1 2.1 cool
or cargo run -- a 1 --b 2.1 --c cool
,
the program will output 3.1 is cool
TODO
- normal args
- named args
- doc
- test
- publish to
crates.io
- CI/CD
- defalut args
- multiple functions
- deal with errors