Implement in place progress bar

This commit is contained in:
Juan Cruz Viotti 2015-02-10 12:55:18 -04:00
parent 6739b7fbca
commit eeee1ce8e1
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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"
}