Update Resin CLI Form to v1.2.0

This version includes support for the `drive` input type.
This commit is contained in:
Juan Cruz Viotti 2015-08-20 11:53:10 -04:00
parent fcc44949a7
commit dc513a08f6
3 changed files with 9 additions and 3 deletions

View File

@ -176,7 +176,10 @@
if (params.device != null) {
return callback(null, params.device);
}
return visuals.drive().nodeify(callback);
return form.ask({
type: 'drive',
message: 'Select a drive'
}).nodeify(callback);
}, function(device, callback) {
var message;
params.device = device;

View File

@ -258,7 +258,10 @@ exports.init =
return callback(new Error("Invalid application: #{options.application}"))
return callback(null, params.device) if params.device?
visuals.drive().nodeify(callback)
form.ask
type: 'drive'
message: 'Select a drive'
.nodeify(callback)
(device, callback) ->
params.device = device

View File

@ -49,7 +49,7 @@
"nplugm": "^3.0.0",
"npm": "^2.13.0",
"open": "0.0.5",
"resin-cli-form": "^1.1.0",
"resin-cli-form": "^1.2.0",
"resin-cli-visuals": "^1.1.0",
"resin-config-inject": "^2.0.0",
"resin-device-config": "^1.0.0",