addCommand method
void
addCommand(
- Command<
void> command
inherited
Adds Command
as a top-level command to this runner.
Implementation
void addCommand(Command<T> command) {
var names = [command.name, ...command.aliases];
for (var name in names) {
_commands[name] = command;
argParser.addCommand(name, command.argParser);
}
command._runner = this;
}