This commit is contained in:
Bel LaPointe
2026-02-01 11:35:09 -07:00
parent df9b2823b6
commit 999e37bd65

View File

@@ -6,8 +6,13 @@ use std::io::{BufRead, Read, Write};
pub fn main() { pub fn main() {
let flags = Flags::new().expect("failed to flags"); let flags = Flags::new().expect("failed to flags");
if let Some(add) = flags.add { if let Some(added) = flags.add.clone() {
panic!("not impl: add {}", add); add(
flags.files().expect("couldnt find files from flags"),
added,
flags.add_schedule.clone(),
)
.expect("failed to add");
} }
if flags.edit { if flags.edit {
@@ -99,6 +104,10 @@ mod test_flags {
} }
} }
fn add(files: Vec<String>, add: String, add_schedule: Option<String>) -> Result<(), String> {
Err("not impl".to_string())
}
fn edit(files: Vec<String>) -> Result<(), String> { fn edit(files: Vec<String>) -> Result<(), String> {
Err("not impl".to_string()) Err("not impl".to_string())
} }