diff --git a/pit.nimble b/pit.nimble index 78edde5..d2ec177 100644 --- a/pit.nimble +++ b/pit.nimble @@ -1,6 +1,6 @@ # Package -version = "4.31.2" +version = "4.32.0" author = "Jonathan Bernard" description = "Personal issue tracker." license = "MIT" diff --git a/src/pit.nim b/src/pit.nim index 33e09d3..fdf393b 100644 --- a/src/pit.nim +++ b/src/pit.nim @@ -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[""]): + 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"]: diff --git a/src/pit/cliconstants.nim b/src/pit/cliconstants.nim index 378cd70..56c6507 100644 --- a/src/pit/cliconstants.nim +++ b/src/pit/cliconstants.nim @@ -1,4 +1,4 @@ -const PIT_VERSION* = "4.31.2" +const PIT_VERSION* = "4.32.0" const USAGE* = """Usage: pit ( new | add) [] [options] @@ -10,6 +10,7 @@ const USAGE* = """Usage: pit ( start | done | pending | todo-today | todo | suspend ) ... [options] pit edit ... [options] pit tag ... [options] + pit update-details [--file=] [options] pit untag ... [options] pit reorder [options] pit delegate [options] @@ -247,4 +248,4 @@ Issue Properties: If present, expected to be a comma-delimited list of text tags. The -g option is a short-hand for '-p tags:'. -""" \ No newline at end of file +"""