Download Brain/src/service/command_service.py from ttt246/brain: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/ttt246/brain/resolve/main/Brain/src/service/command_service.py
- Command line
-
hf download hf://spaces/ttt246/brain/Brain/src/service/command_service.py
-
curl -L -o command_service.py https://huggingface.co/spaces/ttt246/brain/resolve/main/Brain/src/service/command_service.py
316 Bytes
| """service to manage command""" | |
| from typing import Any | |
| from Brain.src.commands.command import CommandRegistry | |
| class CommandService: | |
| """get commands""" | |
| def __init__(self): | |
| self.command_registry = CommandRegistry() | |
| def get(self) -> Any: | |
| return self.command_registry.get_all_commands() | |