Function spawn_editor::spawn_editor
source · pub fn spawn_editor(
override_editor: Option<&str>,
extra_args: &[&str]
) -> Result<ExitStatus, SEError>
Expand description
This function either uses the override_editor
argument as an editor
or tries to get this information from the environment variables.
A file to edit can be provided via extra_args
Example usage:
spawn_editor::spawn_editor(Some("nano"), &["src/lib.rs"]);