run method

FutureOr<CommandResult<R>> run()
override

Runs this command.

The return value is wrapped in a Future if necessary and returned by CommandRunner.runCommand.

Implementation

FutureOr<CommandResult<R>> run() async {
  final isVerbose = globalResults?['verbose'] == true;
  final log = CliLogger(
    logger: isVerbose ? Logger.verbose() : Logger.standard(),
  );

  final result = await internalRun(log, isVerbose, argResults);
  return CommandResult(result, argResults, log);
}