-
Notifications
You must be signed in to change notification settings - Fork 8
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
Wr/tables #823
Wr/tables #823
Conversation
6d56437
to
6542c9c
Compare
src/commands/package/create.ts
Outdated
@@ -94,6 +94,6 @@ export class PackageCreateCommand extends SfCommand<PackageCreate> { | |||
|
|||
private display(result: PackageCreate): void { | |||
this.styledHeader('Ids'); | |||
this.table([{ name: 'Package Id', value: result.Id }], { name: { header: 'NAME' }, value: { header: 'VALUE' } }); | |||
this.table({ data: [{ name: 'Package Id', value: result.Id }] }); |
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.
you should use the title
prop now,
this.table({
data,
title: 'Ids',
})
key: { header: 'Name' }, | ||
value: { header: 'Value' }, | ||
}); | ||
this.table({ data }); |
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.
replace this.styledHeader
by passing in the title prop to this.table
...(flags.verbose ? { 'Version Name': r.VersionName, 'Version Number': r.VersionNumber } : {}), | ||
})); | ||
|
||
this.table({ data, overflow: 'wrap' }); |
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.
replace this.styledHeader
by passing in the title prop to this.table
@@ -214,8 +215,10 @@ export class PackageVersionListCommand extends SfCommand<PackageVersionListComma | |||
}); | |||
}); | |||
this.styledHeader(`Package Versions [${results.length}]`); | |||
this.table(results, getColumnData(flags.concise, flags.verbose, flags['show-conversions-only']), { | |||
'no-truncate': true, | |||
this.table({ |
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.
replace this.styledHeader
by passing in the title prop to this.table
src/commands/package/list.ts
Outdated
|
||
this.table(results, columns); | ||
})); | ||
this.table({ data }); |
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.
replace this.styledHeader
by passing in the title prop to this.table
@@ -213,9 +213,9 @@ export class PackageVersionReportCommand extends SfCommand<PackageVersionReportR | |||
displayCoverageRecords.splice(0, displayCoverageRecords.length); | |||
} | |||
this.styledHeader(chalk.blue('Package Version')); | |||
this.table(displayRecords, { key: { header: 'Name' }, value: { header: 'Value' } }); | |||
this.table({ data: displayRecords }); |
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.
replace this.styledHeader
by passing in the title prop to this.table
QA 🟢
🟢
🟢
🟢
🟡 This doesn't look great even if you use the The problem is that the table is designed to never truncate or wrap table headers, which in retrospect wasn't a great decision. I can make a PR to modify that 🟢 |
What does this PR do?
updates to new sf-plugins-core
updates tables
fixes message string without template string
What issues does this PR fix or reference?
@W-16736199@