commander#CommanderStatic TypeScript Examples

The following examples show how to use commander#CommanderStatic. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: alias.command.ts    From eslint-config-kit with MIT License 5 votes vote down vote up
static load(program: CommanderStatic): void {
    program
      .command('alias')
      .description('Add / edit eslint aliases setup for eslint-plugin-import')
      .action(AliasAction.handle)
  }
Example #2
Source File: check.command.ts    From eslint-config-kit with MIT License 5 votes vote down vote up
static load(program: CommanderStatic): void {
    program
      .command('check')
      .alias('check-versions')
      .description('Check and update dependencies versions')
      .action(CheckVersionsAction.handle)
  }
Example #3
Source File: config.command.ts    From eslint-config-kit with MIT License 5 votes vote down vote up
static load(program: CommanderStatic): void {
    program
      .command('config', { isDefault: true })
      .description('Manage eslint configs')
      .action(ConfigAction.handle)
  }
Example #4
Source File: upgrade.command.ts    From eslint-config-kit with MIT License 5 votes vote down vote up
static load(program: CommanderStatic): void {
    program
      .command('upgrade')
      .description('Upgrade @eslint-kit configs to their latest versions')
      .action(UpgradeAction.handle)
  }