Return devices array to the done callback in device list command

Useful when using the CLI programatically.
This commit is contained in:
Juan Cruz Viotti 2015-05-14 11:43:41 -03:00
parent 2a5e66eca6
commit db58e9986c
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
return done(error);
}
console.log(visuals.widgets.table.horizontal(devices, ['id', 'name', 'device_type', 'is_online', 'application_name', 'status', 'last_seen']));
return done();
return done(null, devices);
});
}
};

View File

@ -49,7 +49,7 @@ exports.list =
'last_seen'
]
return done()
return done(null, devices)
exports.info =
signature: 'device <name>'