list contexts command now prints both the listeral context value and the display name.

This commit is contained in:
2020-05-05 09:40:08 -05:00
parent 0a2249018b
commit 339e88cddd
4 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import cliutils, docopt, json, logging, langutils, options, os, ospaths,
import cliutils, docopt, json, logging, langutils, options, os,
sequtils, strutils, tables, times, timeutils, uuids
from nre import find, match, re, Regex
@ -49,6 +49,7 @@ proc `[]`*(issue: Issue, key: string): string =
proc `[]=`*(issue: Issue, key: string, value: string) =
issue.properties[key] = value
## Issue property accessors
proc hasProp*(issue: Issue, key: string): bool =
return issue.properties.hasKey(key)
@ -62,6 +63,7 @@ proc getDateTime*(issue: Issue, key: string, default: DateTime): DateTime =
proc setDateTime*(issue: Issue, key: string, dt: DateTime) =
issue.properties[key] = dt.formatIso8601
## Issue filtering
proc initFilter*(): IssueFilter =
result = IssueFilter(
completedRange: none(tuple[b, e: DateTime]),

View File

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