cli_boilerplate_automation 0.0.2

Cli Boilerplate Automation: Opiniated Cli Utilities for Basic Tasks
Documentation

CBA Crates.io License

Cli Boilerplate Automation. A small library of assorted utilities for cli tool development.

Modules

Bogger

A stateful logger with convenient macros to log messages, styled according to their level. The standard initialization method writes a message like the following to stdout/stderr:

[ERROR: tag] my_content.

where the tag is colored.

The logger can be configured at runtime to filter, downcast, pause and forward the messages it recieves.

Bath/Bo/Broc/Bs

Simple wrappers around standard library modules (path, io, process, fs) for more ergonomic usage. A few of these operations take the liberty of bogging pertinent errors instead of propogating them, returning Option or bool.

Macros/Misc/...

More ergonomic wrappers:

  • defining wrapper types
  • debug_assertion gated functions
  • Extension traits for:
    • merging types
    • logging and consuming errors
  • a couple of macros
  • helper utilities for common initialization tasks

Optional features

  • text: text utilities