Add update-details command to allow setting an issue details via CLI non-interactively.

This commit is contained in:
2026-02-08 05:10:55 -06:00
parent 89c924bb72
commit 7d5d55d24a
3 changed files with 15 additions and 3 deletions

View File

@@ -306,6 +306,17 @@ when isMainModule:
issue.store()
updatedIssues.add(issue)
elif args["update-details"]:
let details =
if not args["--file"] or $args["--file"] == "-": readAll(stdin)
else: readFile($args["--file"])
for id in @(args["<id>"]):
var issue = ctx.cfg.tasksDir.loadIssueById(id)
issue.details = details
issue.store()
updatedIssues.add(issue)
elif args["start"] or args["todo-today"] or args["done"] or
args["pending"] or args["todo"] or args["suspend"]: