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() async {
// If a sub-command was called, it will be handled by the ScriptSubCommand
// This method only handles the fallback case for backward compatibility
final options = RunOptions.fromArgResults(argResults!);
options.script ??= _promptForScript();
final runner = DpkScriptRunner(
config: config,
options: options,
arguments: argResults!.rest,
);
return await runner.run();
}