[][src]Crate scrawl

Scrawl

A library for opening a file for editing in a text editor and capturing the result as a String

Modules

editor

Editor

error

Scrawl Error Types

Functions

edit

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.

new

New opens an empty text buffer in an editor and returns a Result with the contents.

open

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

with

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