MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / Command

Class Command

src/Command/Conceptual/main.py:21–30  ·  view source on GitHub ↗

EN: The Command interface declares a method for executing a command. RU: Интерфейс Команды объявляет метод для выполнения команд.

Source from the content-addressed store, hash-verified

19
20
21class Command(ABC):
22 """
23 EN: The Command interface declares a method for executing a command.
24
25 RU: Интерфейс Команды объявляет метод для выполнения команд.
26 """
27
28 @abstractmethod
29 def execute(self) -> None:
30 pass
31
32
33class SimpleCommand(Command):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected