MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / open_editor

Method open_editor

src/task_builder.rs:654–666  ·  view source on GitHub ↗
(&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,

Callers 1

buildMethod · 0.80

Calls 3

editorMethod · 0.80
statusMethod · 0.80
successMethod · 0.80

Tested by

no test coverage detected