mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-08 03:44:13 +00:00
Implement in place progress bar
This commit is contained in:
parent
6739b7fbca
commit
eeee1ce8e1
@ -67,7 +67,7 @@ exports.download =
|
||||
bar = new visuals.widgets.Progress('Downloading Device OS')
|
||||
|
||||
resin.models.os.download osParams, options.output, callback, (state) ->
|
||||
console.log(bar.tick(state))
|
||||
bar.update(state)
|
||||
|
||||
], (error) ->
|
||||
return done(error) if error?
|
||||
@ -133,7 +133,7 @@ exports.install =
|
||||
bar = new visuals.widgets.Progress('Writing Device OS')
|
||||
|
||||
progress.on 'progress', (status) ->
|
||||
console.log(bar.tick(status))
|
||||
bar.update(status)
|
||||
|
||||
imageFileStream = fs.createReadStream(params.image).pipe(progress)
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
"nplugm": "^1.0.1",
|
||||
"open": "0.0.5",
|
||||
"progress-stream": "^0.5.0",
|
||||
"resin-cli-visuals": "git+https://git@github.com/resin-io/resin-cli-visuals.git",
|
||||
"resin-cli-visuals": "git+https://git@github.com/resin-io/resin-cli-visuals.git#feature/in-place-progress-bar",
|
||||
"resin-sdk": "git+https://git@github.com/resin-io/resin-sdk.git",
|
||||
"underscore.string": "~2.4.0"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user