Skip to main content

launch_editor

Function launch_editor 

Source
pub fn launch_editor(prior_doc: &Value) -> Result<Option<Value>, EditFlowError>
Expand description

Open initial in $EDITOR (via dialoguer::Editor), parse the result as JSON, and verify the DID id wasn’t mutated. Returns Ok(None) when the operator cancels (saves an empty buffer) — the caller treats that as “abort, don’t publish.”