Add a work in progress implementation of the cycle message
This commit is contained in:
parent
8ad7a2c4e6
commit
4eea2ac43b
3 changed files with 43 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Reference in a new issue