UNPKG

berlioz

Version:

Berlioz - cloud deployment and migration services

28 lines (20 loc) 490 B
module.exports = { useClient: true, arguments: [ ], flags: [ 'json' ], fetch: function({args, dataProvider}) { return dataProvider.getDeployments(); }, exec: function({args, screen, result}) { if (args.json) { screen.info(JSON.stringify(result)); return result; } screen.table(['Name', 'Provider']) .addRange(result, x => [x.name, x.provider]) .output(); } }