Show command

master
sundowndev 2019-02-18 23:12:21 +01:00
parent b0f16bc852
commit 7ba78a558a
1 changed files with 2 additions and 2 deletions

View File

@ -6,10 +6,10 @@ export const action = async ({ args, logger }) => {
switch (data) { switch (data) {
case 'students': case 'students':
logger.table({ rows: global.data.students || [], name: 'Students' }); logger.table({ rows: global.data.students.slice(0, 50) || [], name: 'Students' });
break; break;
case 'enterprises': case 'enterprises':
logger.table({ rows: global.data.enterprises || [], name: 'Enterprises' }); logger.table({ rows: global.data.enterprises.slice(0, 50) || [], name: 'Enterprises' });
break; break;
default: default:
logger.error('You need to specify a valid module'); logger.error('You need to specify a valid module');