From 7ba78a558a7d3c56dfd35e65653b7e7bc8b8bcb3 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 18 Feb 2019 23:12:21 +0100 Subject: [PATCH] Show command --- commands/show/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/show/index.js b/commands/show/index.js index f567f2a..119eb9a 100644 --- a/commands/show/index.js +++ b/commands/show/index.js @@ -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');