Merge pull request #147 from resin-io/jviotti/cleanup/preferences

Remove preferences command
This commit is contained in:
Juan Cruz Viotti 2015-08-14 07:57:14 -04:00
commit 606777508d
6 changed files with 0 additions and 50 deletions

View File

@ -9,7 +9,6 @@
keys: require('./keys'),
logs: require('./logs'),
notes: require('./notes'),
preferences: require('./preferences'),
help: require('./help'),
plugin: require('./plugin')
};

View File

@ -1,22 +0,0 @@
(function() {
var open, settings, url;
open = require('open');
url = require('url');
settings = require('resin-settings-client');
exports.preferences = {
signature: 'preferences',
description: 'open preferences form',
help: 'Use this command to open the preferences form.\n\nIn the future, we will allow changing all preferences directly from the terminal.\nFor now, we open your default web browser and point it to the web based preferences form.\n\nExamples:\n\n $ resin preferences',
permission: 'user',
action: function() {
var absUrl;
absUrl = url.resolve(settings.get('remoteUrl'), '/preferences');
return open(absUrl);
}
};
}).call(this);

View File

@ -76,8 +76,6 @@
capitano.command(actions.notes.set);
capitano.command(actions.preferences.preferences);
capitano.command(actions.keys.list);
capitano.command(actions.keys.add);

View File

@ -8,6 +8,5 @@ module.exports =
keys: require('./keys')
logs: require('./logs')
notes: require('./notes')
preferences: require('./preferences')
help: require('./help')
plugin: require('./plugin')

View File

@ -1,21 +0,0 @@
open = require('open')
url = require('url')
settings = require('resin-settings-client')
exports.preferences =
signature: 'preferences'
description: 'open preferences form'
help: '''
Use this command to open the preferences form.
In the future, we will allow changing all preferences directly from the terminal.
For now, we open your default web browser and point it to the web based preferences form.
Examples:
$ resin preferences
'''
permission: 'user'
action: ->
absUrl = url.resolve(settings.get('remoteUrl'), '/preferences')
open(absUrl)

View File

@ -53,9 +53,6 @@ capitano.command(actions.device.identify)
# ---------- Notes Module ----------
capitano.command(actions.notes.set)
# ---------- Preferences Module ----------
capitano.command(actions.preferences.preferences)
# ---------- Keys Module ----------
capitano.command(actions.keys.list)
capitano.command(actions.keys.add)