setHandler method
Implementation
CommandDefinitionBuilder setHandler(String key, Function fn) {
final command =
_commandMapper.entries.firstWhere((element) => element.key == key);
switch (command.value()) {
case final SubCommandBuilder command:
command.setHandle(fn);
case final CommandDeclarationBuilder command:
command.setHandle(fn);
}
return this;
}