#cli #lang #language

interactive-clap

Interactive mode extension crate to Command Line Arguments Parser (https://crates.io/crates/clap)

6 releases

0.2.4 Jun 2, 2023
0.2.3 May 30, 2023
0.2.0 Apr 2, 2023
0.1.0 Dec 20, 2022

#706 in #lang

Download history 304/week @ 2023-06-05 34/week @ 2023-06-12 83/week @ 2023-06-19 229/week @ 2023-06-26 177/week @ 2023-07-03 112/week @ 2023-07-10 48/week @ 2023-07-17 67/week @ 2023-07-24 119/week @ 2023-07-31 64/week @ 2023-08-07 110/week @ 2023-08-14 179/week @ 2023-08-21 284/week @ 2023-08-28 409/week @ 2023-09-04 89/week @ 2023-09-11 67/week @ 2023-09-18

857 downloads per month
Used in 4 crates

MIT/Apache

19KB
71 lines

Interactive clap

interactive-clap is a Rust crate of helpers for clap that enable interactive prompts for structs.

Crates.io Crates.io License License Contributors

See examples in the examples/ folder.

See it in action in near-cli-rs and bos-cli-rs.


lib.rs:

The Interactive-clap library is an add-on for the Command Line Argument Parser (https://crates.io/crates/clap). Interactive-clap allows you to parse command line options. The peculiarity of this macro is that in the absence of command line parameters, the interactive mode of entering these data by the user is activated.

Dependencies

~1–1.3MB
~31K SLoC