ExportCommand constructor

ExportCommand()

Creates a new export command instance.

Implementation

ExportCommand() {
  argParser
    ..addOption(
      'path',
      abbr: 'p',
      help: 'Collection or document path to export',
      mandatory: true,
    )
    ..addOption(
      'output',
      abbr: 'o',
      help: 'Output JSON file path (omit to write to stdout)',
    )
    ..addOption(
      'limit',
      help: 'Maximum number of documents to export (collection only)',
    )
    ..addFlag(
      'verbose',
      abbr: 'v',
      help: 'Show detailed output',
    );
}