Call a command using a list of string arguments. May raise CommandError.
(self, command_name: str, args: Sequence[str])
| 271 | return self.commands[command_name].func(*args) |
| 272 | |
| 273 | def call_strings(self, command_name: str, args: Sequence[str]) -> Any: |
| 274 | """ |
| 275 | Call a command using a list of string arguments. May raise CommandError. |
| 276 | """ |
| 277 | if command_name not in self.commands: |
| 278 | raise exceptions.CommandError("Unknown command: %s" % command_name) |
| 279 | |
| 280 | return self.commands[command_name].call(args) |
| 281 | |
| 282 | def execute(self, cmdstr: str) -> Any: |
| 283 | """ |
no test coverage detected