1 unstable release

0.1.1 Jul 11, 2024

#523 in Command-line interface

Download history 95/week @ 2024-07-08 4/week @ 2024-07-15 38/week @ 2024-08-19 23/week @ 2024-08-26

61 downloads per month

Custom license

34KB
419 lines

cata

cata(lyst) for building rust based CLIs


lib.rs:

cata(lyst) for building complex CLI tools.

This crate provides a collection of utilities that make it easier to build CLI tools.

  • command: recursively traverse a tree of clap commands and subcommands calling lifecycle hooks at each level.
  • [mod@file]: derive clap::value_parser for deserializing values from files. Detects the file format from the extension and currently supports JSON in addition to YAML.
  • output: structured output for commands. Users can choose the output format they would like, currently supporting JSON, YAML and pretty.\
  • telemetry: a simple way to track activity and errors for your CLI.

Dependencies

~20–33MB
~610K SLoC