(self, command: str)
| 84 | @throw CommandException if the command doesn't exist. |
| 85 | """ |
| 86 | def process_command(self, command: str): |
| 87 | split = command.split(" ", 1) |
| 88 | base = split[0] |
| 89 | |
| 90 | options = "" |
| 91 | if len(split) > 1: |
| 92 | options = split[1] |
| 93 | |
| 94 | if base in self.commands: |
| 95 | self.commands[base]["method"](options) |
| 96 | else: |
| 97 | raise CommandException( |
| 98 | f"'{command.split(' ', 1)[0]}' command not found.") |
no test coverage detected