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

Commit

Permalink
fix: show all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 17, 2018
1 parent 0f5cc95 commit 88f9617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/readme.ts
Expand Up @@ -135,14 +135,13 @@ USAGE
}

commands(config: Config.IConfig, commands: Config.Command[]): string {
let rootCommands = commands.filter(c => !c.id.includes(':'))
return [
'# Commands\n',
...commands.map(c => {
let usage = this.commandUsage(c)
return `* [${config.bin} ${usage}](#${slugify(usage)})`
}),
...rootCommands.map(c => this.renderCommand(config, c, commands)).map(s => s.trim() + '\n'),
...commands.map(c => this.renderCommand(config, c, commands)).map(s => s.trim() + '\n'),
].join('\n').trim()
}

Expand Down

0 comments on commit 88f9617

Please sign in to comment.