Compare commits

..

No commits in common. "main" and "0.3.2" have entirely different histories.
main ... 0.3.2

2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
import cliutils, docopt, json, logging, os, nre, random, sequtils,
times, timeutils
from posix import SIGTERM, SIGHUP, signal, kill, Pid
from posix import SIGTERM, SIGHUP, signal, kill
import strutils except toUpper
from unicode import toUpper
@ -11,7 +11,7 @@ type
DPConfig = tuple[planDir, dateFmt, pidfile, logfile, errfile: string,
notificationSecs: int]
const VERSION = "0.3.3"
const VERSION = "0.3.2"
const NOTE_TITLE = "Daily Notifier v" & VERSION
const timeFmt = "HH:mm"
@ -205,7 +205,7 @@ Options:
info "daily_notifier: not running"
quit(QuitSuccess)
let pid: Pid = cast[Pid] (parseInt(readFile(cfg.pidfile).strip))
let pid = parseInt(readFile(cfg.pidfile).strip)
info "daily_notifier: Killing process " & $pid
if args["stop"]: discard kill(pid, SIGTERM)

View File

@ -1,6 +1,6 @@
# Package
version = "0.3.3"
version = "0.3.2"
author = "Jonathan Bernard"
description = "Little programs that reads my daily plan and notifies me of upcoming events."
license = "MIT"
@ -8,5 +8,5 @@ bin = @["daily_notifier", "deploy_plans_via_ftp"]
# Dependencies
requires @["nim >= 0.18.0", "docopt", "timeutils", "tempfile", "cliutils"]
requires @["nim >= 0.15.0", "docopt", "timeutils", "tempfile", "cliutils"]