Skip to content

Commit

Permalink
put version information after stats
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 10, 2024
1 parent fae1ff4 commit fae15a8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions scripts/summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@ const wrap = (s) => `\`${s}\``;
await writeFile(
'summary.md',
`
${markdownTable(
[
['name', 'command', 'version'],
...results
.slice()
.sort((a, b) => a.name.localeCompare(b.name))
.flatMap(({ name, command, version }) =>
version
.split('\n')
.map((versionLine, i) => [i == 0 ? wrap(name) : '', i == 0 ? wrap(command) : '', versionLine])
),
],
{
align: ['l', 'l', 'l'],
}
)}
<table>
<tr>
<th>Execution time</th>
Expand Down Expand Up @@ -81,5 +64,22 @@ ${markdownTable(
</tr>
</table>
${markdownTable(
[
['name', 'command', 'version'],
...results
.slice()
.sort((a, b) => a.name.localeCompare(b.name))
.flatMap(({ name, command, version }) =>
version
.split('\n')
.map((versionLine, i) => [i == 0 ? wrap(name) : '', i == 0 ? wrap(command) : '', versionLine])
),
],
{
align: ['l', 'l', 'l'],
}
)}
`.trim()
);

0 comments on commit fae15a8

Please sign in to comment.