All informational messages start with 'ptk:'.
This commit is contained in:
parent
56be47f7e1
commit
5140afa671
8
ptk.nim
8
ptk.nim
@ -413,7 +413,7 @@ Options:
|
||||
let now = getTime().local
|
||||
|
||||
# Parse arguments
|
||||
let args = docopt(doc, version = "ptk 0.12.2")
|
||||
let args = docopt(doc, version = "ptk 0.12.3")
|
||||
|
||||
if args["--echo-args"]: echo $args
|
||||
|
||||
@ -494,7 +494,7 @@ Options:
|
||||
if args["stop"]:
|
||||
|
||||
if timeline.marks.last.summary == STOP_MSG:
|
||||
echo "no current task, nothing to stop"
|
||||
echo "ptk: no current task, nothing to stop"
|
||||
quit(0)
|
||||
|
||||
let newMark: Mark = (
|
||||
@ -509,14 +509,14 @@ Options:
|
||||
timeline.writeMarks(
|
||||
indices = @[timeline.marks.len - 2],
|
||||
includeNotes = args["--verbose"])
|
||||
echo "stopped timer"
|
||||
echo "ptk: stopped timer"
|
||||
|
||||
saveTimeline(timeline, timelineLocation)
|
||||
|
||||
if args["continue"]:
|
||||
|
||||
if timeline.marks.last.summary != STOP_MSG:
|
||||
echo "There is already something in progress:"
|
||||
echo "ptk: there is already something in progress:"
|
||||
timeline.writeMarks(
|
||||
indices = @[timeline.marks.len - 1],
|
||||
includeNotes = args["--verbose"])
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.12.2"
|
||||
version = "0.12.3"
|
||||
author = "Jonathan Bernard"
|
||||
description = "Personal Time Keeper"
|
||||
license = "MIT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user