Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
49c5753ef1 | |||
3bdb2ecb1f |
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.0.3"
|
||||
version = "4.0.5"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
11
src/pit.nim
11
src/pit.nim
@ -112,12 +112,13 @@ proc writeSection(ctx: CliContext, issues: seq[Issue], state: IssueState,
|
||||
stdout.writeLine("")
|
||||
stdout.resetAttributes
|
||||
|
||||
var topPadded = true
|
||||
|
||||
let issuesByContext = issues.groupBy("context")
|
||||
|
||||
var topPadded = true
|
||||
|
||||
if issues.len > 5 and issuesByContext.len > 1:
|
||||
for context, ctxIssues in issuesByContext:
|
||||
topPadded = true
|
||||
stdout.setForegroundColor(fgYellow, false)
|
||||
stdout.writeLine(indent & ctx.getIssueContextDisplayName(context) & ":")
|
||||
stdout.writeLine("")
|
||||
@ -229,7 +230,7 @@ Usage:
|
||||
pit list [<state>] [options]
|
||||
pit ( start | done | pending | do-today | todo | suspend ) <id>...
|
||||
pit edit <id>
|
||||
pit delete <id>...
|
||||
pit ( delete | rm ) <id>...
|
||||
|
||||
Options:
|
||||
|
||||
@ -261,7 +262,7 @@ Options:
|
||||
logging.addHandler(newConsoleLogger())
|
||||
|
||||
# Parse arguments
|
||||
let args = docopt(doc, version = "pit 4.0.3")
|
||||
let args = docopt(doc, version = "pit 4.0.5")
|
||||
|
||||
if args["--echo-args"]: stderr.writeLine($args)
|
||||
|
||||
@ -322,7 +323,7 @@ Options:
|
||||
discard execShellCmd(cmd)
|
||||
elif targetState == Done: discard execShellCmd("ptk stop")
|
||||
|
||||
elif args["delete"]:
|
||||
elif args["delete"] or args["rm"]:
|
||||
for id in @(args["<id>"]):
|
||||
|
||||
let issue = ctx.tasksDir.loadIssueById(id)
|
||||
|
Reference in New Issue
Block a user