mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-22 06:57:48 +00:00
Update Resin CLI Form to v1.2.0
This version includes support for the `drive` input type.
This commit is contained in:
parent
fcc44949a7
commit
dc513a08f6
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user