export.rs

 1use anyhow::Result;
 2use std::path::Path;
 3
 4use crate::db;
 5
 6pub fn run(root: &Path) -> Result<()> {
 7    let store = db::open(root)?;
 8    for task in store.list_tasks_unfiltered()? {
 9        println!("{}", task.to_export_value());
10    }
11    Ok(())
12}