Add a work in progress implementation of the cycle message

This commit is contained in:
Campbell Alden 2023-07-21 19:47:55 +09:00
parent 8ad7a2c4e6
commit 4eea2ac43b
3 changed files with 43 additions and 3 deletions

View file

@ -51,8 +51,8 @@ fn main() -> Result<()> {
let args = CliArgs::parse();
let tasks = match args.mode {
Modes::Morning => Task::today(),
Modes::Signoff => Task::logbook(),
Modes::Cycle => panic!("Unimplemented"),
Modes::Signoff => Task::logbook_today(),
Modes::Cycle => Task::logbook_this_cycle(),
}?;
let reported: Vec<Task> = tasks.into_iter().filter(|task| {
args.tags.iter().all(|tag| task.has_tag(tag))