open_file

Function open_file 

Source
pub fn open_file(file_path: &Path) -> Result<(), OpenEditorError>
Expand description

Open a file in the default editor.

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

ยงErrors

Returns an error if the editor call fails or if the file cannot be read.