Crate carli

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§

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

Macros§

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