APubCommand constructor
APubCommand({
- required PubspecLock pubspecLock,
- required PubspecYaml pubspecYaml,
- required Bindings bindings,
- required FindFile findFile,
- required Logger logger,
- required FileSystem fs,
- bool runConcurrently = true,
Implementation
APubCommand({
required this.pubspecLock,
required this.pubspecYaml,
required this.bindings,
required this.findFile,
required this.logger,
required this.fs,
bool runConcurrently = true,
}) {
argParser
..addFlag(
'recursive',
abbr: 'r',
negatable: false,
help: 'Run command recursively in all subdirectories.',
)
..addFlag(
'concurrent',
aliases: ['parallel'],
abbr: 'c',
defaultsTo: runConcurrently,
help: 'Run command concurrently in all subdirectories.',
)
..addFlag(
'bail',
abbr: 'b',
negatable: false,
help: 'Stop running commands if one fails.',
)
..addFlag(
'dart-only',
negatable: false,
help: 'Only run command in Dart projects.',
)
..addFlag(
'separated',
help: 'Runs concurrent dart and flutter commands separately. '
'Does nothing if --concurrent is not enabled.',
)
..addFlag(
'flutter-only',
negatable: false,
help: 'Only run command in Flutter projects.',
);
}