add docstrings

This commit is contained in:
steven-omaha
2023-02-23 16:56:15 +01:00
parent c700784d52
commit d409e9d411
6 changed files with 26 additions and 2 deletions
+2
View File
@@ -5,6 +5,8 @@ use anyhow::{anyhow, Context, Result};
use crate::env::get_editor;
/// Run the editor and pass the provided files as arguments. The workdir is set
/// to the parent of the first file.
pub fn run_edit_command(files: &[&Path]) -> Result<ExitStatus> {
let mut cmd = Command::new(get_editor().context("getting suitable editor")?);
cmd.current_dir(