Merge pull request #398 from resin-io/395-show-device-dashboard-link

Show device dashboard url in 'resin device' output
This commit is contained in:
Kostas Lekkas 2017-05-08 14:05:40 +03:00 committed by GitHub
commit db9225f00a
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,7 @@ exports.list = {
device.uuid = device.uuid.slice(0, 7);
return device;
});
return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online', 'supervisor_version', 'os_version']));
return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online', 'supervisor_version', 'os_version', 'dashboard_url']));
}).nodeify(done);
}
};
@ -60,7 +60,7 @@ exports.info = {
return resin.models.device.get(params.uuid).then(function(device) {
return resin.models.device.getStatus(device).then(function(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', 'os_version']));
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', 'dashboard_url']));
});
}).nodeify(done);
}

View File

@ -60,6 +60,7 @@ exports.list =
'is_online'
'supervisor_version'
'os_version'
'dashboard_url'
]
.nodeify(done)
@ -99,6 +100,7 @@ exports.info =
'is_web_accessible'
'note'
'os_version'
'dashboard_url'
]
.nodeify(done)