run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<int> run() {
final selection = packageSelection(parent!.argResults!);
var arguments = argResults!.rest;
if (arguments.firstOrNull == '--') {
arguments = arguments.sublist(1);
}
return withTerminalTitle(
context.console,
'dpk run ${script.name}',
() => context.runScriptTarget(
script,
arguments: arguments,
filters: selection.filters,
concurrency: selection.concurrency,
failFast: selection.failFast,
dependencyOrder: selection.dependencyOrder,
),
);
}