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

#1533 in Command line utilities

Download history 2/week @ 2024-02-19 38/week @ 2024-02-26 4/week @ 2024-03-04 143/week @ 2024-03-11 99/week @ 2024-03-18 24/week @ 2024-04-01 34/week @ 2024-04-08

64 downloads per month
Used in acsrs

MIT license

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–9.5MB
~61K SLoC