Skip to content

Commit

Permalink
fix: update table
Browse files Browse the repository at this point in the history
  • Loading branch information
soridalac committed Oct 31, 2024
1 parent 579dddb commit e206da7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/org/list/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ export class OrgShapeListCommand extends SfCommand<OrgShapeListResult[]> {
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;
}
Expand Down
1 change: 1 addition & 0 deletions test/shape/list.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ describe('org:shape:list', () => {
...(shape.status === 'Active' ? { ...shape, status: StandardColors.success(shape.status) } : shape),
})),
title: 'Org Shapes',
overflow: 'wrap',
});
});

Expand Down

0 comments on commit e206da7

Please sign in to comment.