leg-1.0.2 has been yanked.
Make your CLIs nicer with minimal effort. Simple wrapper on top of:
- async-std printing macros.
- Prints to
stderrto be nice with your pipes. Except theresultfunction, as expected.
- Prints to
- colored crate:
- Works on Linux, MacOS, and Windows (Powershell).
- Respects CLICOLOR/CLICOLOR_FORCE and NO_COLOR behavior.
Do not use this crate in libraries! You should use the log one instead. Visit this section of the book Command line apps in Rust if you want to learn more about this topic.
Install
With cargo-edit installed run:
Use
📝 Please visit tests and full documentation if you want to learn the details.
use *;
use ;
async