mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Don't use plugin loader for built in functionality
This commit is contained in:
parent
594a358bef
commit
26f037d3c7
@ -1,10 +1,5 @@
|
||||
open = require('open')
|
||||
resin = require('../resin')
|
||||
|
||||
module.exports = (resin) ->
|
||||
|
||||
resin.cli.addCommand
|
||||
command: 'preferences'
|
||||
description: 'open preferences form'
|
||||
permission: 'user'
|
||||
action: ->
|
||||
open(resin.config.urls.preferences)
|
||||
exports.preferences = ->
|
||||
open(resin.config.urls.preferences)
|
||||
|
@ -74,7 +74,11 @@ resin.cli.addCommand
|
||||
permission: 'user'
|
||||
|
||||
# ---------- Preferences Module ----------
|
||||
pluginLoader.use(require('./actions/preferences'))
|
||||
resin.cli.addCommand
|
||||
command: 'preferences'
|
||||
description: 'open preferences form'
|
||||
action: actions.preferences.preferences
|
||||
permission: 'user'
|
||||
|
||||
# ---------- Keys Module ----------
|
||||
resin.cli.addResource
|
||||
|
Loading…
x
Reference in New Issue
Block a user