Add helper to update version easily.

This commit is contained in:
Jonathan Bernard 2020-02-16 00:53:36 -06:00
parent af6aa5d520
commit a1333db427
2 changed files with 7 additions and 4 deletions

View File

@ -1 +1 @@
const PTK_VERSION* = "1.0.1" const PTK_VERSION* = "1.0.2"

View File

@ -1,7 +1,6 @@
# Package # Package
include "private/version.nim"
version = PTK_VERSION version = "1.0.2"
author = "Jonathan Bernard" author = "Jonathan Bernard"
description = "Personal Time Keeper" description = "Personal Time Keeper"
license = "MIT" license = "MIT"
@ -19,5 +18,9 @@ requires @[
"jester 0.4.1", "jester 0.4.1",
"https://git.jdb-labs.com/jdb/nim-lang-utils.git", "https://git.jdb-labs.com/jdb/nim-lang-utils.git",
"https://git.jdb-labs.com/jdb/nim-cli-utils.git", "https://git.jdb-labs.com/jdb/nim-cli-utils.git",
"https://git.jdb-labs.com/jdb/nim-time-utils.git >= 0.5.2" "https://git.jdb-labs.com/jdb/nim-time-utils.git >= 0.5.2",
"https://git.jdb-labs.com/jdb/update-nim-package-version"
] ]
task updateVersion, "Update the version of this package.":
exec "update_nim_package_version ptk 'private/version.nim'"