DeleteCommand constructor

DeleteCommand()

Implementation

DeleteCommand() {
  argParser
    ..addOption(
      'path',
      abbr: 'p',
      help: 'Document or collection path to delete',
      mandatory: true,
    )
    ..addOption(
      'file',
      abbr: 'f',
      help: 'JSON file with array of document paths to delete (batch mode)',
    )
    ..addFlag(
      'recursive',
      abbr: 'r',
      help: 'Recursively delete all documents in collection',
    )
    ..addFlag(
      'apply',
      help: 'Apply changes (without this flag, runs in dry-run mode)',
    )
    ..addFlag(
      'verbose',
      abbr: 'v',
      help: 'Show detailed output',
    );
}