From b949502869057f4fa2b8eb2a35d960794d74b37f Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:26:26 -0600 Subject: [PATCH] now it gets gross ew --- pttodoer/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pttodoer/src/main.rs b/pttodoer/src/main.rs index d18a9e1..44e985c 100644 --- a/pttodoer/src/main.rs +++ b/pttodoer/src/main.rs @@ -24,6 +24,10 @@ fn main() { _ => {}, }; + if flags.edit { + db.edit().expect("failed to edit"); + } + db.save(flags.dry_run).expect("failed to save"); } @@ -110,6 +114,10 @@ impl DB { result } + pub fn edit(&self) -> Result<(), String> { + Err("not impl".to_string()) + } + pub fn save(&self, dry_run: bool) -> Result<(), String> { for i in &self.0 { i.save(dry_run)?;