diff --git a/pttodoest/src/main.rs b/pttodoest/src/main.rs index 4d24c35..001167a 100755 --- a/pttodoest/src/main.rs +++ b/pttodoest/src/main.rs @@ -15,6 +15,11 @@ pub fn main() { .expect("failed to add"); } + if flags.add.is_some() || flags.edit { + reconcile(flags.files().expect("couldnt find files from flags")) + .expect("failed to reconcile"); + } + if flags.edit { edit(flags.files().expect("couldnt find files from flags")).expect("failed to edit"); } @@ -110,6 +115,10 @@ fn add(files: Vec, add: String, add_schedule: Option) -> Result< Err("not impl".to_string()) } +fn reconcile(files: Vec) -> Result<(), String> { + Err("not impl".to_string()) +} + fn edit(files: Vec) -> Result<(), String> { Err("not impl".to_string()) }