mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 00:41:04 +00:00
Merge pull request #387 from resin-io/Add_OS_VERSION
Add OS version to devices,device commands and Supervisor Version to devices command
This commit is contained in:
commit
870ce974e0
@ -43,7 +43,7 @@ limitations under the License.
|
|||||||
device.uuid = device.uuid.slice(0, 7);
|
device.uuid = device.uuid.slice(0, 7);
|
||||||
return device;
|
return device;
|
||||||
});
|
});
|
||||||
return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online']));
|
return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online', 'supervisor_version', 'os_version']));
|
||||||
}).nodeify(done);
|
}).nodeify(done);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -61,7 +61,7 @@ limitations under the License.
|
|||||||
return resin.models.device.get(params.uuid).then(function(device) {
|
return resin.models.device.get(params.uuid).then(function(device) {
|
||||||
return resin.models.device.getStatus(device).then(function(status) {
|
return resin.models.device.getStatus(device).then(function(status) {
|
||||||
device.status = status;
|
device.status = status;
|
||||||
return console.log(visuals.table.vertical(device, ["$" + device.name + "$", 'id', 'device_type', 'status', 'is_online', 'ip_address', 'application_name', 'last_seen', 'uuid', 'commit', 'supervisor_version', 'is_web_accessible', 'note']));
|
return console.log(visuals.table.vertical(device, ["$" + device.name + "$", 'id', 'device_type', 'status', 'is_online', 'ip_address', 'application_name', 'last_seen', 'uuid', 'commit', 'supervisor_version', 'is_web_accessible', 'note', 'os_version']));
|
||||||
});
|
});
|
||||||
}).nodeify(done);
|
}).nodeify(done);
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,8 @@ exports.list =
|
|||||||
'application_name'
|
'application_name'
|
||||||
'status'
|
'status'
|
||||||
'is_online'
|
'is_online'
|
||||||
|
'supervisor_version'
|
||||||
|
'os_version'
|
||||||
]
|
]
|
||||||
.nodeify(done)
|
.nodeify(done)
|
||||||
|
|
||||||
@ -96,6 +98,7 @@ exports.info =
|
|||||||
'supervisor_version'
|
'supervisor_version'
|
||||||
'is_web_accessible'
|
'is_web_accessible'
|
||||||
'note'
|
'note'
|
||||||
|
'os_version'
|
||||||
]
|
]
|
||||||
.nodeify(done)
|
.nodeify(done)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user