From e206da75597ec39a97dbb5f6fc78f5f4e788df3f Mon Sep 17 00:00:00 2001 From: soridalac Date: Thu, 31 Oct 2024 13:04:05 -0700 Subject: [PATCH] fix: update table --- src/commands/org/list/shape.ts | 3 ++- test/shape/list.test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/org/list/shape.ts b/src/commands/org/list/shape.ts index bffd7190..73a10d31 100644 --- a/src/commands/org/list/shape.ts +++ b/src/commands/org/list/shape.ts @@ -37,12 +37,13 @@ export class OrgShapeListCommand extends SfCommand { this.info(messages.getMessage('noOrgShapes')); return orgShapes; } - // this.styledHeader('Org Shapes'); + this.table({ data: orgShapes.map((shape) => ({ ...(shape.status === 'Active' ? { ...shape, status: StandardColors.success(shape.status) } : shape), })), title: 'Org Shapes', + overflow: 'wrap', }); return orgShapes; } diff --git a/test/shape/list.test.ts b/test/shape/list.test.ts index bd87c4f4..afcde4d6 100644 --- a/test/shape/list.test.ts +++ b/test/shape/list.test.ts @@ -82,6 +82,7 @@ describe('org:shape:list', () => { ...(shape.status === 'Active' ? { ...shape, status: StandardColors.success(shape.status) } : shape), })), title: 'Org Shapes', + overflow: 'wrap', }); });