CleanCommand constructor

CleanCommand(
  1. DpkContext context
)

Implementation

CleanCommand(super.context) {
  argParser
    ..addMultiOption(
      'filter',
      valueHelp: 'package',
      help: 'Only clean workspace packages with this name or path glob.',
    )
    ..addFlag('lockfile', negatable: false, help: 'Also remove pubspec.lock.')
    ..addFlag(
      'cache',
      negatable: false,
      help:
          'Also remove the project cache. "dpk get" downloads the packages '
          'and applies the patches again.',
    )
    ..addFlag(
      'dry-run',
      abbr: 'n',
      negatable: false,
      help: 'List what would be removed without removing it.',
    );
}