pub fn pin( editor: &Editor, flake_edit: &mut FlakeEdit, state: &AppState, id: Option<String>, rev: Option<String>, ) -> Result<()>