TestCommand constructor

TestCommand({
  1. Logger? logger,
})

Creates a new TestCommand.

Implementation

TestCommand({Logger? logger}) : _logger = logger ?? Logger() {
  argParser.addOption(
    'base-url',
    abbr: 'b',
    help: 'Base URL for the API (e.g., https://api.example.com)',
    mandatory: true,
  );
  argParser.addOption(
    'token',
    abbr: 't',
    help: 'Bearer token for authentication.',
  );
  argParser.addMultiOption(
    'header',
    abbr: 'H',
    help: 'Additional headers in "key:value" format.',
  );
  argParser.addFlag(
    'verbose',
    abbr: 'v',
    negatable: false,
    help: 'Show detailed request and response information.',
  );
}