ReMe/reme_cli/application.py
2026-04-09 10:38:04 +08:00

16 lines
556 B
Python

from .application_context import ApplicationContext
from .component import BaseComponent
class Application(BaseComponent):
"""Application component for managing the main application."""
def __init__(self, *args, config: str = "", **kwargs) -> None:
super().__init__()
self.context = ApplicationContext(*args, config=config, **kwargs)
async def _start(self, app_context: ApplicationContext | None = None) -> None:
"""Start the application."""
async def _close(self) -> None:
"""Close the application."""