Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix: fixed topics
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent 3de5e5e commit 077e502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/readme.ts
Expand Up @@ -88,7 +88,7 @@ USAGE

multiCommands(config: Config.IConfig, commands: Config.Command[]): string {
let topics = config.topics
topics = topics.filter(t => !t.hidden)
topics = topics.filter(t => !t.hidden && !t.name.includes(':'))
topics = topics.filter(t => commands.find(c => c.id.startsWith(t.name)))
topics = sortBy(topics, t => t.name)
topics = uniqBy(topics, t => t.name)
Expand Down Expand Up @@ -117,7 +117,7 @@ USAGE
`${config.bin} ${topic.name}`,
'='.repeat(`${config.bin} ${topic.name}`.length),
'',
config.pjson.anycli.description || config.pjson.description,
topic.description,
this.commands(config, commands),
].join('\n').trim() + '\n'
fs.outputFileSync(file, doc)
Expand Down

0 comments on commit 077e502

Please sign in to comment.