pub trait EditorRunner: Send + Sync {
// Required methods
fn detect_editor(&self) -> Option<String>;
fn run(&self, editor: &str, path: &Path) -> Result<()>;
}Expand description
Abstraction over editor invocation for testability.
Required Methods§
Sourcefn detect_editor(&self) -> Option<String>
fn detect_editor(&self) -> Option<String>
Detect the editor to use.
Returns None if no editor is available.