From 7b0415a270fa375d37713a022eb0591d5bcb8f85 Mon Sep 17 00:00:00 2001 From: Praneeth Bodduluri Date: Tue, 9 Aug 2016 22:44:40 +0530 Subject: [PATCH] Switch to more human-like command name and follow convention from dashboard --- build/actions/device.js | 24 ++++++++++++------------ lib/actions/device.coffee | 32 ++++++++++++++++---------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/build/actions/device.js b/build/actions/device.js index f68b7faf..d096b414 100644 --- a/build/actions/device.js +++ b/build/actions/device.js @@ -136,9 +136,9 @@ limitations under the License. }; exports.enableDeviceUrl = { - signature: 'device enableDeviceUrl ', - description: 'enable device URL for a device', - help: 'Use this command to enable device URL for a device\n\nExamples:\n\n $ resin device enableDeviceUrl 23c73a1', + signature: 'device public-url enable ', + description: 'enable public URL for a device', + help: 'Use this command to enable public URL for a device\n\nExamples:\n\n $ resin device public-url enable 23c73a1', permission: 'user', action: function(params, options, done) { var resin; @@ -148,9 +148,9 @@ limitations under the License. }; exports.disableDeviceUrl = { - signature: 'device disableDeviceUrl ', - description: 'disable device URL for a device', - help: 'Use this command to disable device URL for a device\n\nExamples:\n\n $ resin device disableDeviceUrl 23c73a1', + signature: 'device public-url disable ', + description: 'disable public URL for a device', + help: 'Use this command to disable public URL for a device\n\nExamples:\n\n $ resin device public-url disable 23c73a1', permission: 'user', action: function(params, options, done) { var resin; @@ -160,9 +160,9 @@ limitations under the License. }; exports.getDeviceUrl = { - signature: 'device getDeviceUrl ', - description: 'gets the device URL of a device', - help: 'Use this command to get the device URL of a device\n\nExamples:\n\n $ resin device getDeviceUrl 23c73a1', + signature: 'device public-url ', + description: 'gets the public URL of a device', + help: 'Use this command to get the public URL of a device\n\nExamples:\n\n $ resin device public-url 23c73a1', permission: 'user', action: function(params, options, done) { var resin; @@ -174,9 +174,9 @@ limitations under the License. }; exports.hasDeviceUrl = { - signature: 'device hasDeviceUrl ', - description: 'Returns true if device URL is enabled for a device', - help: 'Use this command to determine if device URL is enabled for a device\n\nExamples:\n\n $ resin device hasDeviceUrl 23c73a1', + signature: 'device public-url status ', + description: 'Returns true if public URL is enabled for a device', + help: 'Use this command to determine if public URL is enabled for a device\n\nExamples:\n\n $ resin device public-url status 23c73a1', permission: 'user', action: function(params, options, done) { var resin; diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index b81bc02a..1b91261e 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -187,14 +187,14 @@ exports.reboot = resin.models.device.reboot(params.uuid).nodeify(done) exports.enableDeviceUrl = - signature: 'device enableDeviceUrl ' - description: 'enable device URL for a device' + signature: 'device public-url enable ' + description: 'enable public URL for a device' help: ''' - Use this command to enable device URL for a device + Use this command to enable public URL for a device Examples: - $ resin device enableDeviceUrl 23c73a1 + $ resin device public-url enable 23c73a1 ''' permission: 'user' action: (params, options, done) -> @@ -202,14 +202,14 @@ exports.enableDeviceUrl = resin.models.device.enableDeviceUrl(params.uuid).nodeify(done) exports.disableDeviceUrl = - signature: 'device disableDeviceUrl ' - description: 'disable device URL for a device' + signature: 'device public-url disable ' + description: 'disable public URL for a device' help: ''' - Use this command to disable device URL for a device + Use this command to disable public URL for a device Examples: - $ resin device disableDeviceUrl 23c73a1 + $ resin device public-url disable 23c73a1 ''' permission: 'user' action: (params, options, done) -> @@ -217,14 +217,14 @@ exports.disableDeviceUrl = resin.models.device.disableDeviceUrl(params.uuid).nodeify(done) exports.getDeviceUrl = - signature: 'device getDeviceUrl ' - description: 'gets the device URL of a device' + signature: 'device public-url ' + description: 'gets the public URL of a device' help: ''' - Use this command to get the device URL of a device + Use this command to get the public URL of a device Examples: - $ resin device getDeviceUrl 23c73a1 + $ resin device public-url 23c73a1 ''' permission: 'user' action: (params, options, done) -> @@ -234,14 +234,14 @@ exports.getDeviceUrl = .nodeify(done) exports.hasDeviceUrl = - signature: 'device hasDeviceUrl ' - description: 'Returns true if device URL is enabled for a device' + signature: 'device public-url status ' + description: 'Returns true if public URL is enabled for a device' help: ''' - Use this command to determine if device URL is enabled for a device + Use this command to determine if public URL is enabled for a device Examples: - $ resin device hasDeviceUrl 23c73a1 + $ resin device public-url status 23c73a1 ''' permission: 'user' action: (params, options, done) ->