mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 08:51:04 +00:00
23 lines
705 B
JavaScript
23 lines
705 B
JavaScript
(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);
|