boromir674/so-magic

View on GitHub
src/so_magic/utils/command_interface.py

Summary

Maintainability
A
0 mins
Test Coverage
from abc import ABC, abstractmethod


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