Add ptk integration option as a command-line switch.
This commit is contained in:
parent
ec3008937d
commit
0a2249018b
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "4.7.1"
|
||||
version = "4.8.0"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal issue tracker."
|
||||
license = "MIT"
|
||||
|
@ -288,6 +288,8 @@ Options:
|
||||
configured in the .pitrc file)
|
||||
|
||||
--term-width <width> Manually set the terminal width to use.
|
||||
|
||||
--ptk Enable PTK integration for this command.
|
||||
"""
|
||||
|
||||
logging.addHandler(newConsoleLogger())
|
||||
@ -402,7 +404,7 @@ Options:
|
||||
if targetState == Done: issue["completed"] = getTime().local.formatIso8601
|
||||
issue.changeState(ctx.tasksDir, targetState)
|
||||
|
||||
if ctx.triggerPtk:
|
||||
if ctx.triggerPtk or args["--ptk"]:
|
||||
if targetState == Current:
|
||||
let issue = ctx.tasksDir.loadIssueById($(args["<id>"][0]))
|
||||
var cmd = "ptk start"
|
||||
|
@ -1 +1 @@
|
||||
const PIT_VERSION* = "4.7.1"
|
||||
const PIT_VERSION* = "4.8.0"
|
Loading…
x
Reference in New Issue
Block a user