Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4127fbe41c | |||
0671d7728e | |||
7b5f26f24a |
20
pit.nimble
20
pit.nimble
@ -1,8 +1,6 @@
|
||||
# Package
|
||||
|
||||
include "src/pitpkg/version.nim"
|
||||
|
||||
version = PIT_VERSION
|
||||
version = "4.7.0"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
@ -11,5 +9,17 @@ bin = @["pit", "pit_api"]
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires @[ "nim >= 0.19.0", "cliutils 0.6.1", "docopt 0.6.8", "jester 0.4.1",
|
||||
"langutils >= 0.4.0", "timeutils 0.4.0", "uuids 0.1.10" ]
|
||||
requires @[
|
||||
"nim >= 0.19.0",
|
||||
"docopt 0.6.8",
|
||||
"jester 0.4.1",
|
||||
"uuids 0.1.10",
|
||||
|
||||
"https://git.jdb-labs.com/jdb/nim-cli-utils.git >= 0.6.1",
|
||||
"https://git.jdb-labs.com/jdb/nim-lang-utils.git >= 0.4.0",
|
||||
"https://git.jdb-labs.com/jdb/nim-time-utils.git >= 0.4.0",
|
||||
"https://git.jdb-labs.com/jdb/update-nim-package-version"
|
||||
]
|
||||
|
||||
task updateVersion, "Update the version of this package.":
|
||||
exec "update_nim_package_version pit 'src/pitpkg/version.nim'"
|
11
src/pit.nim
11
src/pit.nim
@ -1,7 +1,7 @@
|
||||
## Personal Issue Tracker CLI interface
|
||||
## ====================================
|
||||
|
||||
import cliutils, docopt, json, logging, options, os, ospaths, sequtils,
|
||||
import cliutils, docopt, json, logging, options, os, sequtils,
|
||||
tables, terminal, times, timeutils, unicode, uuids
|
||||
|
||||
from nre import re
|
||||
@ -405,7 +405,14 @@ Options:
|
||||
if targetState == Current:
|
||||
let issue = ctx.tasksDir.loadIssueById($(args["<id>"][0]))
|
||||
var cmd = "ptk start"
|
||||
if issue.tags.len > 0: cmd &= "-g \"" & issue.tags.join(",") & "\""
|
||||
if issue.tags.len > 0 or issue.properties.hasKey("context"):
|
||||
let tags = concat(
|
||||
issue.tags,
|
||||
if issue.properties.hasKey("context"): @[issue.properties["context"]]
|
||||
else: @[]
|
||||
)
|
||||
cmd &= " -g \"" & tags.join(",") & "\""
|
||||
cmd &= " -n \"pit-id: " & $issue.id & "\""
|
||||
cmd &= " \"" & issue.summary & "\""
|
||||
discard execShellCmd(cmd)
|
||||
elif targetState == Done or targetState == Pending:
|
||||
|
@ -1 +1 @@
|
||||
const PIT_VERSION* = "4.6.0"
|
||||
const PIT_VERSION* = "4.7.0"
|
Reference in New Issue
Block a user