1 Commits
1.2.1 ... 1.2.2

Author SHA1 Message Date
a5dae03897 Default output to stdout. 2023-01-08 16:58:18 -06:00
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@ apply plugin: "groovy"
apply plugin: "maven"
group = "com.jdbernard"
version = "1.2.1"
version = "1.2.2"
repositories {
mavenLocal()

View File

@ -1,6 +1,6 @@
# Package
version = "1.2.1"
version = "1.2.2"
author = "Jonathan Bernard"
description = "Utility for writing dynamic progress bars to the console."
license = "BSD"
@ -9,4 +9,3 @@ srcDir = "src/main/nim"
# Dependencies
requires "nim >= 0.13.0"

View File

@ -13,7 +13,7 @@ proc getMax*(pd: Progress): BiggestInt =
proc setMax*(pd: Progress, maxValue: BiggestInt) =
pd.maxValue = max(maxValue, 1)
proc newProgress*(sout: File, maxValue: BiggestInt): Progress =
proc newProgress*(maxValue: BiggestInt, sout: File = stdout): Progress =
return Progress(sout: sout,
startTime: cpuTime(),
lastStep: 0,