Skip to content

Commit

Permalink
Reformat epilogue to make it clearer
Browse files Browse the repository at this point in the history
As suggested by @gustavohenke
  • Loading branch information
paescuj committed Jun 13, 2022
1 parent 3a0ab08 commit 10a78ee
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions bin/epilogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,22 @@ const examples = [
},
];

const examplesString = examples
.map(({ example, description }) =>
[
` - ${description}`,
example
.split('\n')
.map(line => ` ${line}`)
.join('\n'),
].join('\n\n')
)
.join('\n\n');

export const epilogue = `
Examples:
${examples
.map(
({ example, description }) => `
- ${description}
${example
.split('\n')
.map(line => ` ${line}`)
.join('\n')}
`
)
.join('')}
${examplesString}
For more details, visit https://github.com/open-cli-tools/concurrently
`;

0 comments on commit 10a78ee

Please sign in to comment.