Source code for so_magic.utils.command_interface

from abc import ABC, abstractmethod


[docs]class CommandInterface(ABC): """Standalone command, encapsulating all logic and data needed, required for execution."""
[docs] @abstractmethod def execute(self) -> None: """Execute the command; run the commands logic.""" raise NotImplementedError