cmd: add --progress/-P flag to show progress

Fixes #2347
Fixes #1210
This commit is contained in:
Nick Craig-Wood 2018-06-30 16:05:31 +01:00
parent b596ccdf0f
commit b6db90cc32
6 changed files with 143 additions and 1 deletions

View file

@ -297,7 +297,9 @@ func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {
if !showStats && ShowStats() {
showStats = true
}
if showStats {
if fs.Config.Progress {
stopStats = startProgress()
} else if showStats {
stopStats = StartStats()
}
SigInfoHandler()