mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 13:47:52 +00:00
Merge pull request #147 from resin-io/jviotti/cleanup/preferences
Remove preferences command
This commit is contained in:
commit
606777508d
@ -9,7 +9,6 @@
|
||||
keys: require('./keys'),
|
||||
logs: require('./logs'),
|
||||
notes: require('./notes'),
|
||||
preferences: require('./preferences'),
|
||||
help: require('./help'),
|
||||
plugin: require('./plugin')
|
||||
};
|
||||
|
@ -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);
|
@ -76,8 +76,6 @@
|
||||
|
||||
capitano.command(actions.notes.set);
|
||||
|
||||
capitano.command(actions.preferences.preferences);
|
||||
|
||||
capitano.command(actions.keys.list);
|
||||
|
||||
capitano.command(actions.keys.add);
|
||||
|
@ -8,6 +8,5 @@ module.exports =
|
||||
keys: require('./keys')
|
||||
logs: require('./logs')
|
||||
notes: require('./notes')
|
||||
preferences: require('./preferences')
|
||||
help: require('./help')
|
||||
plugin: require('./plugin')
|
||||
|
@ -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)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user