run method
Attempts to run an arbitrary task by name as a top-level command. Returns fallback command if task is not defined.
Implementation
@override
Future<int> run(CliContext ctx) async => runCommand(
invocation: ctx.invocation,
logger: ctx.logger,
workspaceConfig: ctx.workspaceConfig,
executor: ctx.executor,
groupStore: await FileGroupStore.createFromContext(ctx),
envBuilder: ctx.envBuilder,
plugins: ctx.plugins,
fallbackCommand: () => FallbackCommand().run(ctx),
);