open_editor

Function open_editor 

Source
pub fn open_editor() -> Result<String, OpenEditorError>
Expand description

Open the default editor and return what was written in it.

This is a static convenience method equivalent to EditorCallBuilder::new().open_editor().

ยงErrors

Returns an error if the editor call fails, or if the temporary file cannot be read or cleaned up.