From d61c4775083001016c991191ea1f429e563dd978 Mon Sep 17 00:00:00 2001 From: j-james Date: Wed, 11 Nov 2020 23:43:15 -0800 Subject: Add support for pacman's progress bar Easter egg --- src/feature/syncinstall.nim | 2 +- src/feature/syncsource.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/feature') diff --git a/src/feature/syncinstall.nim b/src/feature/syncinstall.nim index 0a9170d..ccf9a91 100644 --- a/src/feature/syncinstall.nim +++ b/src/feature/syncinstall.nim @@ -42,7 +42,7 @@ proc createCloneProgress(config: Config, count: int, flexible: bool, printMode: (proc (update: int, terminate: int) {.closure.}, proc {.closure.}) = if count >= 1 and not printMode: let (update, terminate) = printProgressShare(config.common.progressBar, - tr"cloning repositories") + config.common.chomp, tr"cloning repositories") update(0, count) if flexible: diff --git a/src/feature/syncsource.nim b/src/feature/syncsource.nim index 09e9c6d..6ec082c 100644 --- a/src/feature/syncsource.nim +++ b/src/feature/syncsource.nim @@ -133,7 +133,7 @@ proc cloneAndCopy(config: Config, quiet: bool, fullTargets: seq[FullPackageTarge (proc (a: int, b: int) {.closure, sideEffect.} = discard, proc () {.closure, sideEffect.} = discard) else: - printProgressShare(config.common.progressBar, tr"cloning repositories") + printProgressShare(config.common.progressBar, config.common.chomp, tr"cloning repositories") let (results, rerrors) = cloneRepositories(config, baseTargets, update) terminate() -- cgit v1.2.3-70-g09d2