Registry / cli / shrust

shrust

JSON →
library0.0.7rscratesunverified

Library for building interactive command-line shells in Rust.

# Cargo.toml [dependencies] shrust = "0.0.7"
INSTALL
IMPORT
SIG · SHRUST
S
shrust
clirustv0.0.7
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.

Shell
use shrust::Shell;

Creates a simple shell with a custom command.

use shrust::Shell; fn main() { let mut shell = Shell::new("example"); shell.new_command("hello", "prints hello", |_, _| { println!("Hello!"); Ok(()) }); shell.run_loop(&mut ()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
32
OpenAI (training)
1
Resources