brson / stdx

The missing batteries of Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

thoghts on stdcli crate built on top of this?

vitiral opened this issue · comments

I left a comment on reddit but wanted your feedback.

I've been thinking about ways we can make cli development even easier and I think having a stdcli crate that does use stdx::* but also includes more libraries for writing cli's would be AMAZING. This would be built on top of stdx but have libraries specific for developing scripts and cli's.

Some other libraries that would be useful that stdx doesn't (and shouldn't) have:

  • cargo-script: this wouldnt be in stdcli, but is an important one to know! Quickly write and run cli scripts with crate caching.
  • structopt_derive: simpler and more intuititive than clap, uses clap underneath.
  • tabwriter easy formatting of data into a table using \t character for alignment
  • self_update: auto update/upgrade the compiled binary
  • ansi_term: colors in the terminal
  • fern: easier logging for clis
  • fs_extra: to remove some of your tiny functions
  • ctrlc: easy handling of unix AND windows signals