Chelsea / command /command_interface.py
CineAI's picture
Update command/command_interface.py
dd8fb0e verified
raw
history blame
554 Bytes
from typing import Optional, Dict, Any
from abc import ABC, abstractmethod
class CommandHandler(ABC):
# {"base": {"name": command}, "advance": {"name": command}}
@abstractmethod
def get_command() -> Dict[str, Dict[str, list]]:
"Method to get command from yaml file and return dictionary"
pass
@abstractmethod
def is_contains() -> bool:
"""Method to check contains command in text or not"""
pass
@abstractmethod
def execute() -> Any:
"Method to execute command"
pass