cli-battery-pack
A battery pack for building CLI applications in Rust.
What's Included
| Crate | What it does |
|---|---|
| anstream | Auto-detecting stream for terminal color support |
| anstyle | ANSI text styling |
| anstyle-hyperlink | ANSI hyperlink support |
| supports-hyperlinks | Detect terminal hyperlink support |
| anyhow | Ergonomic error handling for applications |
| clap | Command-line argument parsing with derive macros |
| colorchoice-clap | Clap argument for controlling color output |
| wild | Glob argument expansion (for Windows compatibility) |
| dialoguer | Interactive prompts and user input |
| human-panic | Human-friendly panic messages |
Dev dependencies
| Crate | What it does |
|---|---|
| snapbox | Snapshot testing for CLI commands |
Optional features
- indicators:
indicatiffor progress bars,consolefor terminal styling - search:
regexfor pattern matching,ignorefor gitignore-aware file walking - config:
etceterafor platform-native configuration directories
Quick Start
Want progress bars too?
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.