balena-cli/lib/actions/app.coffee
2014-11-18 08:41:13 -04:00

10 lines
345 B
CoffeeScript

server = require('../server/server')
exports.list = ->
# TODO: The details of requesting the API should be handled
# by the models. Make use of them once they are implemented
server.get '/ewa/application?$orderby=app_name%20asc&$expand=device', (error, response) ->
for app in response.body.d
console.log "#{app.id} - #{app.app_name}"