Method
open_editor
(&self, instructions_path: &str, tsk_env: &TskEnv)
Source from the content-addressed store, hash-verified
| 652 | } |
| 653 | |
| 654 | fn open_editor(&self, instructions_path: &str, tsk_env: &TskEnv) -> Result<(), Box<dyn Error>> { |
| 655 | let editor = tsk_env.editor(); |
| 656 | |
| 657 | let status = std::process::Command::new(editor) |
| 658 | .arg(instructions_path) |
| 659 | .status()?; |
| 660 | |
| 661 | if !status.success() { |
| 662 | return Err("Editor exited with non-zero status".into()); |
| 663 | } |
| 664 | |
| 665 | Ok(()) |
| 666 | } |
| 667 | |
| 668 | async fn check_instructions_not_empty( |
| 669 | &self, |
Tested by
no test coverage detected