remove the user requirement for the supported devices list

This commit is contained in:
Eugene Mirotin 2017-06-08 17:32:37 +03:00
parent f465e74a87
commit 24388811ad
3 changed files with 3 additions and 5 deletions

View File

@ -76,7 +76,7 @@ Alternatively, you can edit your configuration file and set `resinUrl: resinstag
The Resin CLI persists your session token, as well as cached images in `$HOME/.resin` or `%UserProfile%\_resin`.
Pointing the Resin CLI to persist data in another location is necessary in certain environments, like a server, where there is no home directory, or a device running Resin OS, which erases all data after a restart.
Pointing the Resin CLI to persist data in another location is necessary in certain environments, like a server, where there is no home directory, or a device running resinOS, which erases all data after a restart.
You can accomplish this by setting `RESINRC_DATA_DIRECTORY=/opt/resin` or adding `dataDirectory: /opt/resin` to your configuration file, replacing `/opt/resin` with your desired directory.

View File

@ -70,7 +70,6 @@ exports.supported = {
signature: 'devices supported',
description: 'list all supported devices',
help: 'Use this command to get the list of all supported devices\n\nExamples:\n\n $ resin devices supported',
permission: 'user',
action: function(params, options, done) {
var resin;
resin = require('resin-sdk-preconfigured');
@ -262,7 +261,7 @@ exports.move = {
exports.init = {
signature: 'device init',
description: 'initialise a device with resin os',
description: 'initialise a device with resinOS',
help: 'Use this command to download the OS image of a certain application and write it to an SD Card.\n\nNotice this command may ask for confirmation interactively.\nYou can avoid this by passing the `--yes` boolean option.\n\nExamples:\n\n $ resin device init\n $ resin device init --application MyApp',
options: [
commandOptions.optionalApplication, commandOptions.yes, {

View File

@ -114,7 +114,6 @@ exports.supported =
$ resin devices supported
'''
permission: 'user'
action: (params, options, done) ->
resin = require('resin-sdk-preconfigured')
resin.models.config.getDeviceTypes().each (deviceType) ->
@ -353,7 +352,7 @@ exports.move =
exports.init =
signature: 'device init'
description: 'initialise a device with resin os'
description: 'initialise a device with resinOS'
help: '''
Use this command to download the OS image of a certain application and write it to an SD Card.