Skip to main content

Crate cli_battery_pack

Crate cli_battery_pack 

Source
Expand description

§cli-battery-pack

A battery pack for building CLI applications in Rust.

§What’s Included

CrateWhat it does
anyhowErgonomic error handling for applications
clapCommand-line argument parsing with derive macros
dialoguerInteractive prompts and user input

§Optional features

  • indicatorsindicatif for progress bars, console for terminal styling
  • searchregex for pattern matching, ignore for gitignore-aware file walking

§Quick Start

cargo bp add cli

Want progress bars too?

cargo bp add cli -F indicators

§License

Licensed under either of:

at your option.

CrateVersionDescription
anyhow1Flexible concrete Error type built on std::error::Error
clap4A simple to use, efficient, and full-featured Command Line Argument Parser
console0.15A terminal and console abstraction for Rust
dialoguer0.11A command line prompting library.
ignore0.4
indicatif0.17
regex1

Functions§

validate
Validate that the consumer’s dependencies match this battery pack’s specs.