Support marking multiple tasks as done

Not yet exposed via the CLI though
This commit is contained in:
Joscha 2021-12-16 00:47:59 +01:00
parent c07d27aa13
commit ab63261dfd
5 changed files with 32 additions and 25 deletions

View file

@ -92,7 +92,7 @@ pub fn run() -> Result<()> {
},
Some(Command::Done) => match opt.entry {
None => return Err(Error::NoNumber),
Some(n) => done::mark_done(&mut files, &entries, &layout, n, now)?,
Some(n) => done::mark_done(&mut files, &entries, &layout, &[n], now)?,
},
Some(Command::Fmt) => files.mark_all_dirty(),
}