From 999e37bd65013e2f63c62d4ad63c181e20a0440e Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 1 Feb 2026 11:35:09 -0700 Subject: [PATCH] stub add --- pttodoest/src/main.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pttodoest/src/main.rs b/pttodoest/src/main.rs index a1026ff..e755be4 100755 --- a/pttodoest/src/main.rs +++ b/pttodoest/src/main.rs @@ -6,8 +6,13 @@ use std::io::{BufRead, Read, Write}; pub fn main() { let flags = Flags::new().expect("failed to flags"); - if let Some(add) = flags.add { - panic!("not impl: add {}", add); + if let Some(added) = flags.add.clone() { + add( + flags.files().expect("couldnt find files from flags"), + added, + flags.add_schedule.clone(), + ) + .expect("failed to add"); } if flags.edit { @@ -99,6 +104,10 @@ mod test_flags { } } +fn add(files: Vec, add: String, add_schedule: Option) -> Result<(), String> { + Err("not impl".to_string()) +} + fn edit(files: Vec) -> Result<(), String> { Err("not impl".to_string()) }