4 releases

0.0.4 Feb 2, 2024
0.0.3 Jan 2, 2024
0.0.2 Nov 12, 2023
0.0.1 Jun 3, 2023

#14 in #shrs

Download history 128/week @ 2024-01-01 9/week @ 2024-01-08 48/week @ 2024-01-29 13/week @ 2024-02-12 20/week @ 2024-02-19 31/week @ 2024-02-26 9/week @ 2024-03-04 138/week @ 2024-03-11 20/week @ 2024-03-18 18/week @ 2024-03-25 48/week @ 2024-04-01 19/week @ 2024-04-08 19/week @ 2024-04-15

105 downloads per month

MIT/Apache

335KB
7.5K SLoC

shrs_line

modular and customizable readline implementation in rust

MIT/Apache 2.0


lib.rs:

Readline implementation for shrs

Readline is the part of the shell that is responsible for taking in user input. It handles a variety of things like keeping track of history, syntax highlighting, tab completion, vi mode, and many more.

shrs_line has a similar design philosophy to the rest of shrs in that it is also highly configurable and extensible. Simply construct your own readline and give it to shrs to use.

Example

use shrs_line::prelude::*;

let mut myline = LineBuilder::default();

Imports the commonly used structs and types

Dependencies

~15–30MB
~443K SLoC