diff --git a/src/main.rs b/src/main.rs index 4e3c45a..f8bd37d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use std::fs::File; use std::time::{SystemTime, UNIX_EPOCH, Duration}; use std::ops::{Add, Sub}; use clap::Parser; +use std::collections::HashMap; #[derive(Debug, Parser)] struct Flags { @@ -64,7 +65,10 @@ fn log(f: &String, since: &Option) -> Result<(), String> { let since = parse_time(since)?; let tsheet = load(&f)?; let tsheet = tsheet.since(since); - println!("{:?}", tsheet); + let mut logs = HashMap::new(); + for &x in &tsheet.xs { + } + println!("{:?}", logs); Err("not impl".to_string()) }