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

Commit

Permalink
fix: fixed label for own commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 14, 2018
1 parent ee69c42 commit 499f5bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/readme.ts
Expand Up @@ -178,7 +178,11 @@ USAGE
commandPath = commandPath.replace(/\.js$/, '.ts')
}
repo = repo.url.split('+')[1].replace(/\.git$/, '')
return `_See code: [${plugin.name}](${repo}/blob/v${plugin.version}/${commandPath})_`
let label = plugin.name
if (config.name === plugin.name) {
label = commandPath
}
return `_See code: [${label}](${repo}/blob/v${plugin.version}/${commandPath})_`
}

commandUsage(command: Config.Command): string {
Expand Down

0 comments on commit 499f5bb

Please sign in to comment.