mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Show uuid in devices command
The command to get information about a device, `resin device` requires a `uuid` as a parameter. Given that we don't show uuids in `resin devices`, the user has no way to know what uuid to pass to get extra information. We also remove some non very used information columns from `resin devices` to make space for the uuid.
This commit is contained in:
parent
b893bd1e39
commit
43697a3476
@ -41,7 +41,7 @@
|
||||
}
|
||||
return resin.models.device.getAll();
|
||||
}).tap(function(devices) {
|
||||
return console.log(visuals.table.horizontal(devices, ['id', 'name', 'device_type', 'is_online', 'application_name', 'status', 'last_seen']));
|
||||
return console.log(visuals.table.horizontal(devices, ['uuid', 'name', 'device_type', 'application_name', 'status']));
|
||||
}).nodeify(done);
|
||||
}
|
||||
};
|
||||
|
@ -39,13 +39,11 @@ exports.list =
|
||||
|
||||
.tap (devices) ->
|
||||
console.log visuals.table.horizontal devices, [
|
||||
'id'
|
||||
'uuid'
|
||||
'name'
|
||||
'device_type'
|
||||
'is_online'
|
||||
'application_name'
|
||||
'status'
|
||||
'last_seen'
|
||||
]
|
||||
.nodeify(done)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user