feat: add uncomplete command to restore completed tasks to pending

Dedicated command that sets status back to pending and clears End time.
Unlike undo, works on any completed task regardless of when it was
completed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 15:22:51 +01:00
parent 2fa1316f0d
commit 07d1a78dfc
2 changed files with 91 additions and 1 deletions
+3 -1
View File
@@ -34,7 +34,7 @@ var commandNames = []string{
"add", "done", "modify", "delete",
"start", "stop", "count", "projects", "tags",
"info", "edit", "server", "sync", "reports", "setup",
"version", "annotate", "denotate", "undo", "log", "completion",
"version", "annotate", "denotate", "undo", "uncomplete", "log", "completion",
}
// Report names (dynamically populated)
@@ -241,6 +241,7 @@ func init() {
annotateCmd.GroupID = "task"
denotateCmd.GroupID = "task"
undoCmd.GroupID = "task"
uncompleteCmd.GroupID = "task"
logCmd.GroupID = "task"
rootCmd.AddCommand(addCmd)
@@ -254,6 +255,7 @@ func init() {
rootCmd.AddCommand(annotateCmd)
rootCmd.AddCommand(denotateCmd)
rootCmd.AddCommand(undoCmd)
rootCmd.AddCommand(uncompleteCmd)
rootCmd.AddCommand(logCmd)
// Other commands