File size: 521 Bytes
a2756cf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from typing import Optional
from ..command_handler import CommandHandler
class DocumentationHandler(CommandHandler):
def __init__(self, commands, successor: Optional["CommandHandler"] = None):
super().__init__(successor)
self.commands = commands
def handle_command(self, command):
if command.lower() in self.commands:
print(self.execute_command())
else:
super().handle_command(command)
def execute_command(self):
return "Download ..."
|