PubDowngradeCommand constructor

PubDowngradeCommand({
  1. required PubspecLock pubspecLock,
  2. required PubspecYaml pubspecYaml,
  3. required FileSystem fs,
  4. required Logger logger,
  5. required Bindings bindings,
  6. required FindFile findFile,
})

Implementation

PubDowngradeCommand({
  required super.pubspecLock,
  required super.pubspecYaml,
  required super.fs,
  required super.logger,
  required super.bindings,
  required super.findFile,
}) {
  argParser.addFlag(
    'offline',
    help: 'Use cached packages instead of accessing the network.',
  );

  argParser.addFlag(
    'dry-run',
    abbr: 'n',
    negatable: false,
    help: "Report what dependencies would change but don't change any.",
  );

  argParser.addFlag(
    'tighten',
    help:
        'Updates lower bounds in pubspec.yaml to match the resolved version.',
    negatable: false,
  );
}