()
| 86 | |
| 87 | |
| 88 | def make_default_commands() -> dict[CommandName, type[Command]]: |
| 89 | result: dict[CommandName, type[Command]] = {} |
| 90 | for v in vars(commands).values(): |
| 91 | if isinstance(v, type) and issubclass(v, Command) and v.__name__[0].islower(): |
| 92 | result[v.__name__] = v |
| 93 | result[v.__name__.replace("_", "-")] = v |
| 94 | return result |
| 95 | |
| 96 | |
| 97 | default_keymap: tuple[tuple[KeySpec, CommandName], ...] = tuple( |
nothing calls this directly
no test coverage detected