Switch to more human-like command name and follow convention from dashboard

This commit is contained in:
Praneeth Bodduluri 2016-08-09 22:44:40 +05:30
parent 3adb8f19bd
commit 7b0415a270
2 changed files with 28 additions and 28 deletions
build/actions
lib/actions

View File

@ -136,9 +136,9 @@ limitations under the License.
};
exports.enableDeviceUrl = {
signature: 'device enableDeviceUrl <uuid>',
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 <uuid>',
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 <uuid>',
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 <uuid>',
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 <uuid>',
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 <uuid>',
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 <uuid>',
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 <uuid>',
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;

View File

@ -187,14 +187,14 @@ exports.reboot =
resin.models.device.reboot(params.uuid).nodeify(done)
exports.enableDeviceUrl =
signature: 'device enableDeviceUrl <uuid>'
description: 'enable device URL for a device'
signature: 'device public-url enable <uuid>'
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 <uuid>'
description: 'disable device URL for a device'
signature: 'device public-url disable <uuid>'
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 <uuid>'
description: 'gets the device URL of a device'
signature: 'device public-url <uuid>'
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 <uuid>'
description: 'Returns true if device URL is enabled for a device'
signature: 'device public-url status <uuid>'
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) ->