Show command
parent
b0f16bc852
commit
7ba78a558a
|
@ -6,10 +6,10 @@ export const action = async ({ args, logger }) => {
|
|||
|
||||
switch (data) {
|
||||
case 'students':
|
||||
logger.table({ rows: global.data.students || [], name: 'Students' });
|
||||
logger.table({ rows: global.data.students.slice(0, 50) || [], name: 'Students' });
|
||||
break;
|
||||
case 'enterprises':
|
||||
logger.table({ rows: global.data.enterprises || [], name: 'Enterprises' });
|
||||
logger.table({ rows: global.data.enterprises.slice(0, 50) || [], name: 'Enterprises' });
|
||||
break;
|
||||
default:
|
||||
logger.error('You need to specify a valid module');
|
||||
|
|
Loading…
Reference in New Issue