mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +00:00
Make use of resin.models.device.getSupportedDeviceTypes() asynchronously
This commit is contained in:
parent
65729012b6
commit
a6a3eeae6d
@ -134,9 +134,11 @@ exports.supported =
|
|||||||
$ resin devices supported
|
$ resin devices supported
|
||||||
'''
|
'''
|
||||||
permission: 'user'
|
permission: 'user'
|
||||||
action: ->
|
action: (params, options, done) ->
|
||||||
devices = resin.models.device.getSupportedDeviceTypes()
|
resin.models.device.getSupportedDeviceTypes (error, devices) ->
|
||||||
_.each(devices, _.unary(console.log))
|
return done(error) if error?
|
||||||
|
_.each(devices, _.unary(console.log))
|
||||||
|
done()
|
||||||
|
|
||||||
exports.init =
|
exports.init =
|
||||||
signature: 'device init [device]'
|
signature: 'device init [device]'
|
||||||
|
Loading…
Reference in New Issue
Block a user