mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-18 10:46:34 +00:00
Sort the output of balena devices supported
alphabetically by slug
Change-type: patch Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
parent
101a4bc209
commit
d9b417e9e5
@ -130,10 +130,8 @@ exports.supported =
|
||||
visuals = require('resin-cli-visuals')
|
||||
|
||||
balena.models.config.getDeviceTypes().then (deviceTypes) ->
|
||||
console.log visuals.table.horizontal deviceTypes, [
|
||||
'slug'
|
||||
'name'
|
||||
]
|
||||
fields = ['slug', 'name']
|
||||
console.log visuals.table.horizontal(_.sortBy(deviceTypes, fields), fields)
|
||||
.nodeify(done)
|
||||
|
||||
exports.register =
|
||||
|
Loading…
Reference in New Issue
Block a user