CleanCommand constructor

CleanCommand(
  1. CommandContext context
)

Implementation

CleanCommand(super.context) {
  argParser
    ..addFlag(
      'dry-run',
      help: 'Preview what would be removed.',
      negatable: false,
    )
    ..addFlag(
      'yes',
      abbr: 'y',
      help: 'Skip confirmation prompts.',
      negatable: false,
    )
    ..addFlag(
      'interactive',
      abbr: 'i',
      help: 'Use an interactive menu similar to the shell-script workflow.',
      negatable: false,
    )
    ..addOption(
      'path',
      abbr: 'p',
      help: 'Flutter project or workspace to clean.',
      defaultsTo: Directory.current.path,
    )
    ..addMultiOption(
      'include',
      allowed: ['flutter', 'android', 'apple', 'system'],
      help: 'Limit cleanup to one or more categories.',
    );
}