INNER CODE UNIT · TypeScript

Commander

emqx/MQTTX · cli/src/index.ts:29

export class Commander {
  program: Command

  constructor() {
    this.program = new Command()
  }

  init(): void {
    this.program
      .name('mqttx')
      .description('An MQTT client for the command line')
      .enablePositionalOptions()
      .allowUnknownOption(false)
      .version(`${version}\nhttps://mqttx.app/changelogs/v${version}`, '-v, --version')

    this.program
      .command('check')
      .description('Check for updates.')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…