addCommand method

  1. @override
void addCommand(
  1. Command<int> command
)
inherited

Adds Command as a top-level command to this runner.

Implementation

@override
void addCommand(args_command_runner.Command<int> command) {
  super.addCommand(command);

  if (!['help', 'completion', 'install-completion-files', 'uninstall-completion-files'].contains(command.name)) {
    logger.trace('command added', commandName: command.name);
  }
}