Skip to content

Commit

Permalink
fix: update change for table
Browse files Browse the repository at this point in the history
  • Loading branch information
soridalac committed Oct 21, 2024
1 parent f9d7d8d commit 3a0a224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/org/list/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ export default class ListAuth extends SfCommand<AuthListResults> {
});

const hasErrors = auths.filter((auth) => !!auth.error).length > 0;
this.styledHeader('authenticated orgs');

this.table({
data: mappedAuths,
columns: [
{ key: 'alias', name: 'ALIAS' },
{ key: 'username', name: 'USERNAME' },
{ key: 'orgId', name: 'ORG ID' },
{ key: 'instanceUrl', name: 'AUTH METHOD' },
{ key: 'instanceUrl', name: 'INSTANCE URL' },
{ key: 'oauthMethod', name: 'AUTH METHOD' },
hasErrors ? { key: 'error', name: 'ERROR' } : 'error',
],
title: 'authenticated orgs',
...(hasErrors ? { error: { header: 'ERROR' } } : {}),
});
return mappedAuths;
} catch (err) {
Expand Down

0 comments on commit 3a0a224

Please sign in to comment.