feat: add archive

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-09 17:02:06 +02:00
parent 9ceaa4cd38
commit 56a63dbb7d
6 changed files with 56 additions and 10 deletions

View File

@@ -43,4 +43,10 @@ impl SharedEngine {
.unwrap()
.section_move(root, src_path, dest_path)
}
pub fn toggle_item(&self, root: &str, path: &[&str]) -> anyhow::Result<()> {
self.inner.write().unwrap().toggle_item(root, path)?;
Ok(())
}
}