From d72750de65ac96c80b3d4599c7fe21d2dbd54bd3 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 10 Feb 2016 08:51:00 -0400 Subject: [PATCH] Show if a device is online in devices command Fixes: https://github.com/resin-io/resin-cli/issues/312 --- build/actions/device.js | 2 +- lib/actions/device.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/actions/device.js b/build/actions/device.js index f3b7542f..7fa6f129 100644 --- a/build/actions/device.js +++ b/build/actions/device.js @@ -43,7 +43,7 @@ limitations under the License. device.uuid = device.uuid.slice(0, 7); return device; }); - return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status'])); + return console.log(visuals.table.horizontal(devices, ['id', 'uuid', 'name', 'device_type', 'application_name', 'status', 'is_online'])); }).nodeify(done); } }; diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index e67dba56..9bcb30ce 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -57,6 +57,7 @@ exports.list = 'device_type' 'application_name' 'status' + 'is_online' ] .nodeify(done)