From 6e4b299c7d1183f13f930245a382e779bc7603cf Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 13 Aug 2015 15:00:27 -0400 Subject: [PATCH] Remove preferences command --- build/actions/index.js | 1 - build/actions/preferences.js | 22 ---------------------- build/app.js | 2 -- lib/actions/index.coffee | 1 - lib/actions/preferences.coffee | 21 --------------------- lib/app.coffee | 3 --- 6 files changed, 50 deletions(-) delete mode 100644 build/actions/preferences.js delete mode 100644 lib/actions/preferences.coffee diff --git a/build/actions/index.js b/build/actions/index.js index 63dd92df..5bd889e3 100644 --- a/build/actions/index.js +++ b/build/actions/index.js @@ -9,7 +9,6 @@ keys: require('./keys'), logs: require('./logs'), notes: require('./notes'), - preferences: require('./preferences'), help: require('./help'), plugin: require('./plugin') }; diff --git a/build/actions/preferences.js b/build/actions/preferences.js deleted file mode 100644 index a5b3c61f..00000000 --- a/build/actions/preferences.js +++ /dev/null @@ -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); diff --git a/build/app.js b/build/app.js index 7c03c162..2c424ce7 100644 --- a/build/app.js +++ b/build/app.js @@ -76,8 +76,6 @@ capitano.command(actions.notes.set); - capitano.command(actions.preferences.preferences); - capitano.command(actions.keys.list); capitano.command(actions.keys.add); diff --git a/lib/actions/index.coffee b/lib/actions/index.coffee index c055c44d..f028a9d3 100644 --- a/lib/actions/index.coffee +++ b/lib/actions/index.coffee @@ -8,6 +8,5 @@ module.exports = keys: require('./keys') logs: require('./logs') notes: require('./notes') - preferences: require('./preferences') help: require('./help') plugin: require('./plugin') diff --git a/lib/actions/preferences.coffee b/lib/actions/preferences.coffee deleted file mode 100644 index 4fa191ed..00000000 --- a/lib/actions/preferences.coffee +++ /dev/null @@ -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) diff --git a/lib/app.coffee b/lib/app.coffee index bc6f5f05..1ad7bec2 100644 --- a/lib/app.coffee +++ b/lib/app.coffee @@ -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)