4 releases
0.1.3 | Mar 17, 2024 |
---|---|
0.1.2 | Mar 17, 2024 |
0.1.1 | Jul 14, 2023 |
0.1.0 | May 1, 2023 |
#1626 in Command line utilities
29 downloads per month
Used in acsrs
14KB
394 lines
TokioCLI
An Unix CLI based on Tokio
TokioCLI is a very simple async libary allowing to build interactive CLI for UNIX systems.
The following features are supported:
- Auto-completion with tabulation.
- Commands history
This library was initially developped for the CLI implentation of acsrs: https://github.com/guillaumepellegrino/acsrs/blob/master/src/acscli.rs
Library documetation is available here: https://docs.rs/tokiocli/latest/tokiocli/index.html
Examples are availabe here: https://github.com/guillaumepellegrino/tokiocli/tree/master/examples
Crate is available at: https://crates.io/crates/tokiocli
TODO:
- History persistence
- Ctrl-R ?
lib.rs
:
A Unix [Cli
] based on Tokio.
This crate provide a simple library allowing to write interactive Command Line Interface in an Unix spirit.
APIs are async and thus can be easily integrated in a Tokio crate.
Dependencies
~2.6–8MB
~61K SLoC