Crate carli

Source
Expand description

A library for rapid command line tool development.

CarLI is a framework for creating single-command and multi-command CLI applications in Rust. The framework provides error and IO types better suited for the command line environment, especially in cases where unit testing is needed. Opinionated traits are also provided to enforce a consistent way of structuring the application and its subcommands.

See command::Main for a complete example.

Modules§

  • Provides opinionated scaffolding for creating a command line application.
  • Provides a means to handle errors intended for command line interfaces.
  • Provides types used to manage input and output streams used by commands.
  • Provides preludes for different contexts in command line application development.

Macros§

  • Immediately returns an error.
  • Creates a new error.
  • Simplifies writing a line terminated string to the error output.
  • Simplifies writing a line terminated string to the global output.