[][src]Function scrawl::edit

pub fn edit<P: AsRef<Path>>(path: P) -> Result<(), ScrawlError>

Edit opens a text buffer in an editor with the contents of the file specified. This does edit the contents of the file. Returns a Result with the contents of the buffer.

Example


    /* Directly edits the file, no output is returned */
    scrawl::edit("hello.txt")