balena-cli/lib/actions/preferences.coffee
2015-01-08 09:39:38 -03:00

10 lines
310 B
CoffeeScript

open = require('open')
url = require('url')
resin = require('resin-sdk')
permissions = require('../permissions/permissions')
exports.preferences = permissions.user ->
preferencesUrl = resin.settings.get('urls.preferences')
absUrl = url.resolve(resin.settings.get('remoteUrl'), preferencesUrl)
open(absUrl)