PubDepsCommand constructor
PubDepsCommand({
- required PubspecLock pubspecLock,
- required PubspecYaml pubspecYaml,
- required FileSystem fs,
- required Logger logger,
- required Bindings bindings,
- 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.',
);
}