Registry / cli / scrawl

scrawl

JSON →
library2.0.0rscratesunverified

Opens a user's preferred text editor to edit data inline and returns a readable struct for interactive CLI applications.

# Cargo.toml [dependencies] scrawl = "2.0.0"
INSTALL
IMPORT
SIG · SCRAWL
S
scrawl
clirustv2.0.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.

edit
use scrawl::edit;

Open the default editor with initial text and print the result.

use scrawl::edit; fn main() -> Result<(), Box<dyn std::error::Error>> { let result = edit("initial text")?; println!("Edited: {}", result); Ok(()) }
Debug
Known issues
gotchaMay block the main thread while waiting for editor to close.
fix
Run in a separate thread or use async if needed.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
OpenAI (training)
1
Resources
scrawl — cargo add scrawl · libregistry