PubDepsCommand constructor

PubDepsCommand({
  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

PubDepsCommand({
  required super.pubspecLock,
  required super.pubspecYaml,
  required super.fs,
  required super.logger,
  required super.bindings,
  required super.findFile,
}) : super(runConcurrently: false) {
  argParser.addOption(
    'style',
    abbr: 's',
    help: 'How output should be displayed.',
    allowed: ['compact', 'tree', 'list'],
    defaultsTo: 'tree',
  );

  argParser.addFlag(
    'dev',
    help: 'Whether to include dev dependencies.',
    defaultsTo: true,
  );

  argParser.addFlag(
    'executables',
    negatable: false,
    help: 'List all available executables.',
  );

  argParser.addFlag(
    'json',
    negatable: false,
    help: 'Output dependency information in a json format.',
  );
}