mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Implement preferences module
This commit is contained in:
parent
76194c7d46
commit
47a1e16dab
5
lib/actions/preferences.coffee
Normal file
5
lib/actions/preferences.coffee
Normal file
@ -0,0 +1,5 @@
|
||||
open = require('open')
|
||||
config = require('../config')
|
||||
|
||||
exports.preferences = ->
|
||||
open(config.urls.preferences)
|
@ -33,6 +33,15 @@ program
|
||||
.description('Show a list of your apps')
|
||||
.action(app.list)
|
||||
|
||||
# ---------- Preferences Module ----------
|
||||
|
||||
preferences = require('./actions/preferences')
|
||||
|
||||
program
|
||||
.command('preferences')
|
||||
.description('Open preferences in your web browser')
|
||||
.action(preferences.preferences)
|
||||
|
||||
data.prefix.set config.dataPrefix, (error) ->
|
||||
throw error if error?
|
||||
program.parse(process.argv)
|
||||
|
@ -14,6 +14,7 @@ config =
|
||||
|
||||
config.urls =
|
||||
signup: '/signup'
|
||||
preferences: '/preferences'
|
||||
|
||||
# Append config.remoteUrl before every url
|
||||
config.urls = _.object _.map config.urls, (value, key, object) ->
|
||||
|
Loading…
Reference in New Issue
Block a user