From dc513a08f6ec8d40379288de031c0954d02a09ad Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 20 Aug 2015 11:53:10 -0400 Subject: [PATCH] Update Resin CLI Form to v1.2.0 This version includes support for the `drive` input type. --- build/actions/device.js | 5 ++++- lib/actions/device.coffee | 5 ++++- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build/actions/device.js b/build/actions/device.js index 21e33cc5..f66d71c0 100644 --- a/build/actions/device.js +++ b/build/actions/device.js @@ -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; diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index d4215fd9..10a0b5a0 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -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 diff --git a/package.json b/package.json index 759d3ed3..0d468834 100644 --- a/package.json +++ b/package.json @@ -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",