#cli #prelude

cotton

A prelude with crates, types and functions useful for writing CLI tools

9 releases

✓ Uses Rust 2018 edition

0.0.8 Nov 26, 2019
0.0.7 Nov 22, 2019
0.0.5 Oct 21, 2019
0.0.2 Aug 27, 2019
0.0.1 Apr 30, 2019

#131 in Command-line interface

Download history 18/week @ 2019-11-01 20/week @ 2019-11-08 27/week @ 2019-11-15 71/week @ 2019-11-22 32/week @ 2019-11-29 67/week @ 2019-12-06 17/week @ 2019-12-13 2/week @ 2019-12-20 9/week @ 2019-12-27 15/week @ 2020-01-03 53/week @ 2020-01-10 40/week @ 2020-01-17 2/week @ 2020-01-24 9/week @ 2020-01-31 18/week @ 2020-02-07

146 downloads per month
Used in 4 crates

MIT license

47KB
640 lines

Latest Version Documentation License

"Batteries included" prelude with crates, types and functions useful for writing command-line interface tools.

This prelude aims to be useful in generic context of CLI tools and will try to minimise dependencies.

Things that fit this prelude:

  • argument parsing,
  • I/O including reading from stdin,
  • common file operations and directory structure,
  • logging,
  • executing commands,
  • extensions to stdlib and language functionality,
  • digests and checksums,
  • time and duration.

Things that will not be included:

  • JSON parser or other formats,
  • HTTP client or specific API clients
  • TLS or other encryption libraries.

Dependencies

~4.5MB
~79K SLoC