Skip to content

Commit

Permalink
#92 - forbid running rm,done,undone,edit,postpone without specifying …
Browse files Browse the repository at this point in the history
…tasks to process
  • Loading branch information
VladimirMarkelov committed Mar 1, 2024
1 parent 0e001df commit 7a36037
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,7 @@ fn task_list_calendar(stdout: &mut StandardStream, tasks: &todo::TaskSlice, conf

fn task_done(stdout: &mut StandardStream, tasks: &mut todo::TaskVec, conf: &conf::Conf) -> io::Result<()> {
if is_filter_empty(&conf.flt) {
writeln!(
stdout,
"Warning: you are going to mark all the tasks 'done'. Please specify tasks to complete."
)?;
writeln!(stdout, "Warning: you are going to mark all the tasks 'done'. Please specify tasks to complete.")?;
std::process::exit(1);
}
let processed = process_tasks(stdout, tasks, conf, "completed", todo::done)?;
Expand Down

0 comments on commit 7a36037

Please sign in to comment.