[][src]Function scrawl::with

pub fn with(content: &str) -> Result<String, ScrawlError>

With opens a text buffer with the contents of the provided String in an editor. Returns a Result with the edited contents.

Example

    let output = scrawl::with("Hello World!")?;
    println!("{}", output);