Registry / cli / reedline

reedline

JSON →
library0.48.0rscratesunverified

A readline-like crate for CLI text input.

# Cargo.toml [dependencies] reedline = "0.48.0"
INSTALL
IMPORT
SIG · REEDLINE
R
reedline
clirustv0.48.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Reedline
use reedline::Reedline;

Reads a line of input from the user with prompt.

use reedline::{Reedline, Signal}; fn main() { let mut line_editor = Reedline::create(); if let Ok(Signal::Success(buffer)) = line_editor.read_line("> ") { println!("You entered: {}", buffer); } }
Debug
Known issues
gotchaReedline requires the `signal-hook` feature for proper signal handling on Unix; missing it may cause issues with Ctrl+C.
fix
Add `features = ["signal-hook"]` to your Cargo.toml dependency.
affects: >=0.48.0
Upgrade
Version history
0.48.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
reedline — cargo add reedline · libregistry