-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update auth table and dependencies #1173
Changes from 2 commits
04f8a6b
f9d7d8d
3a0a224
d26260b
bf7a35a
9f25082
b6ba3cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,16 +38,19 @@ export default class ListAuth extends SfCommand<AuthListResults> { | |
}); | ||
|
||
const hasErrors = auths.filter((auth) => !!auth.error).length > 0; | ||
const columns = { | ||
alias: { header: 'ALIAS' }, | ||
username: { header: 'USERNAME' }, | ||
orgId: { header: 'ORG ID' }, | ||
instanceUrl: { header: 'INSTANCE URL' }, | ||
oauthMethod: { header: 'AUTH METHOD' }, | ||
...(hasErrors ? { error: { header: 'ERROR' } } : {}), | ||
}; | ||
this.styledHeader('authenticated orgs'); | ||
this.table(mappedAuths, columns); | ||
|
||
this.table({ | ||
data: mappedAuths, | ||
columns: [ | ||
{ key: 'alias', name: 'ALIAS' }, | ||
{ key: 'username', name: 'USERNAME' }, | ||
{ key: 'orgId', name: 'ORG ID' }, | ||
{ key: 'instanceUrl', name: 'AUTH METHOD' }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be |
||
{ key: 'oauthMethod', name: 'AUTH METHOD' }, | ||
hasErrors ? { key: 'error', name: 'ERROR' } : 'error', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add
and remove |
||
}); | ||
return mappedAuths; | ||
} catch (err) { | ||
this.log(messages.getMessage('noResultsFound')); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this dependency going backwards? 12->9?