aesophor / py-todo

📋 Lightweight reminder / todo-list in cli
https://www.reddit.com/r/unixporn/comments/9qy35q/oc_pytodo_a_lightweight_reminder_in_cli/
MIT License
107 stars 22 forks source link

Add the edit sub-command #13

Closed Steampunkery closed 5 years ago

Steampunkery commented 5 years ago

Description

This PR adds the edit sub-command, which can be invoked with the -e or --edit flags. It edits an item in-place. If no task name or expiry are provided, it will prompt for them, similar to the -a flag. If the gathering of input fails, the old item is inserted back into the list, and the list is printed.

Testing

Things to try:

aesophor commented 5 years ago

Thanks a lot!