Add ptk integration option as a command-line switch.

This commit is contained in:
Jonathan Bernard 2020-04-16 10:20:33 -05:00
parent ec3008937d
commit 0a2249018b
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "4.7.1"
version = "4.8.0"
author = "Jonathan Bernard"
description = "Personal issue tracker."
license = "MIT"

View File

@ -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"

View File

@ -1 +1 @@
const PIT_VERSION* = "4.7.1"
const PIT_VERSION* = "4.8.0"