naggie / dstask

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!
https://calbryant.uk/blog/dstask-a-taskwarrior-alternative/
MIT License
793 stars 47 forks source link

Remove task warning message incorrectly states all tasks will be removed #140

Closed kingo55 closed 3 years ago

kingo55 commented 3 years ago

When you remove a task, dstask says it will remove all tasks. However it only removes the one task you specify:

$ dstask rm 52
52: How we use Snowplow Analytics for tracking experiments

The above 39 task(s) will be deleted without checking subtasks. Continue? [y/n] y

Removed: 52: How we use Snowplow Analytics for tracking experiments
[master 4fb4287] Removed: 52: How we use Snowplow Analytics for tracking experiments
 1 file changed, 12 deletions(-)
 delete mode 100644 pending/9f9fd31a-3935-47da-a27f-4af2b9a28ccd.yml

In this example above, it says it will remove all 39 tasks rather than just 1 specified task.

It's caught me off-guard a few times...

naggie commented 3 years ago

Hi @kingo55, thanks for the report.

It seems this is fixed in master -- I'll make a release soon to resolve this.

Callan