Skip to content

CommandInterface

CommandInterface

Bases: ABC

Interface for commands to cli.

Source code in myalias/core/interfaces/command_interface.py
 4
 5
 6
 7
 8
 9
10
class CommandInterface(ABC):
    """Interface for commands to cli."""

    @abstractmethod
    def execute(self, *args, **kwargs):
        """Execute command."""
        pass

execute(*args, **kwargs) abstractmethod

Execute command.

Source code in myalias/core/interfaces/command_interface.py
 7
 8
 9
10
@abstractmethod
def execute(self, *args, **kwargs):
    """Execute command."""
    pass