Context passed to a command handler when a command is executed.
| 508 | |
| 509 | @dataclass |
| 510 | class CommandContext: |
| 511 | """Context passed to a command handler when a command is executed.""" |
| 512 | |
| 513 | session_id: str |
| 514 | """Session ID where the command was invoked.""" |
| 515 | command: str |
| 516 | """The full command text (e.g. ``"/deploy production"``).""" |
| 517 | command_name: str |
| 518 | """Command name without leading ``/``.""" |
| 519 | args: str |
| 520 | """Raw argument string after the command name.""" |
| 521 | |
| 522 | |
| 523 | CommandHandler = Callable[[CommandContext], Awaitable[None] | None] |
no outgoing calls
no test coverage detected
searching dependent graphs…