Skip to content

Commit

Permalink
fix: prep for lodash templating
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 2, 2018
1 parent e26d552 commit 67c842d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/commands/help.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import {Command, flags, parse} from '@anycli/command'
import {IConfig} from '@anycli/config'
import cli from 'cli-ux'

import Help from '..'

const config: IConfig = global.anycli.config

export default class HelpCommand extends Command {
static title = `display help for ${config.bin}`
static title = 'display help for <%= config.bin %>'
static flags = {
all: flags.boolean({description: 'see all commands in CLI'}),
format: flags.enum({description: 'output in a different format', options: ['markdown', 'man']}),
Expand Down
3 changes: 0 additions & 3 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
declare namespace NodeJS {
interface Global {
'columns': number
anycli: {
config: any
}
}
}
4 changes: 2 additions & 2 deletions test/commands/help.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('help command', () => {
.stdout()
.command(['help', 'help'])
.it('shows help command help', ctx => {
expect(ctx.stdout).to.equal(`display help for anycli
expect(ctx.stdout).to.equal(`display help for <%= config.bin %>
USAGE
$ anycli help [COMMAND] [OPTIONS]
Expand Down Expand Up @@ -33,7 +33,7 @@ DESCRIPTION
standard help for anycli
COMMANDS
help display help for anycli
help display help for <%= config.bin %>
plugins
plugins:install
plugins:uninstall
Expand Down
2 changes: 1 addition & 1 deletion test/root.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ DESCRIPTION
standard help for anycli
COMMANDS
help display help for anycli
help display help for <%= config.bin %>
plugins
plugins:install
plugins:uninstall
Expand Down

0 comments on commit 67c842d

Please sign in to comment.