SingleCommand constructor

SingleCommand()

Creates a new single command instance.

Implementation

SingleCommand() {
  argParser
    ..addOption(
      'path',
      abbr: 'p',
      help: 'Document path (e.g., users/user123)',
      mandatory: true,
    )
    ..addOption(
      'file',
      abbr: 'f',
      help: 'JSON file path',
      mandatory: true,
    )
    ..addOption(
      'id-field',
      help: 'Field name to use as document ID (optional)',
    )
    ..addFlag(
      'merge',
      help: 'Merge with existing document instead of replacing',
    )
    ..addFlag(
      'apply',
      help: 'Apply changes (without this flag, runs in dry-run mode)',
    )
    ..addFlag(
      'verbose',
      abbr: 'v',
      help: 'Show detailed output',
    );
}