Merge pull request #274 from resin-io/jviotti/feat/id-devices

Show id in devices command
This commit is contained in:
Juan Cruz Viotti 2015-12-02 15:59:21 -04:00
commit 800d13e3cd
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@
}
return resin.models.device.getAll();
}).tap(function(devices) {
return console.log(visuals.table.horizontal(devices, ['uuid', 'name', 'device_type', 'application_name', 'status']));
return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status']));
}).nodeify(done);
}
};

View File

@ -39,6 +39,7 @@ exports.list =
.tap (devices) ->
console.log visuals.table.horizontal devices, [
'id'
'uuid'
'name'
'device_type'