Skip to content

Commit

Permalink
fix: fixed help strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent 026f4b7 commit 38e2166
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
22 changes: 11 additions & 11 deletions src/commands/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ export default class PluginsIndex extends Command {
core: flags.boolean({description: 'show core plugins'})
}
static description = 'list installed plugins'
static examples = [`<%
let examplePlugins = {
'heroku-ci': {version: '1.8.0'},
'heroku-cli-status': {version: '3.0.10', type: 'link'},
'heroku-fork': {version: '4.1.22'},
}
const examplePluginsHelp = Object.entries(examplePlugins).map(([name, p]: [string, any]) => \` \${name} \${p.version}\`)
static examples = ['$ <%- config.bin %> plugins']

%>Example:
$ <%- config.bin> plugins
<%- examplePluginsHelp.join('\n') %>
`]
// static examples = [`<%
// let examplePlugins = {
// 'heroku-ci': {version: '1.8.0'},
// 'heroku-cli-status': {version: '3.0.10', type: 'link'},
// 'heroku-fork': {version: '4.1.22'}
// }
// const examplePluginsHelp = Object.entries(examplePlugins).map(([name, p]) => \` \${name} \${p.version}\`).join('\n')
// %>$ <%- config.bin %> plugins
// <%- examplePluginsHelp %>
// `]

plugins = new Plugins(this.config)

Expand Down
5 changes: 1 addition & 4 deletions src/commands/plugins/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ import Plugins from '../../plugins'
export default class PluginsInstall extends Command {
static description = 'installs a plugin into the CLI'
static usage = 'plugins:install PLUGIN...'
static examples = [`
Example:
$ <%= config.bin %> plugins:install \${examplePlugin}
`]
static examples = ['$ <%= config.bin %> plugins:install <%- config.pjson.anycli.examplePlugin || "heroku-production-status" %> ']
static strict = false
static args = [{name: 'plugin', description: 'plugin to install', required: true}]

Expand Down

0 comments on commit 38e2166

Please sign in to comment.