feat(host-agent): add workspace application entrypoint
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from host_agent.app import HostAgentApplication, create_application
|
||||
|
||||
__all__ = ["HostAgentApplication", "create_application"]
|
||||
@@ -0,0 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class HostAgentApplication:
|
||||
"""Process shell expanded by the Host Agent implementation tasks."""
|
||||
|
||||
def run(self) -> None:
|
||||
return None
|
||||
|
||||
|
||||
def create_application() -> HostAgentApplication:
|
||||
return HostAgentApplication()
|
||||
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
from collections.abc import Sequence
|
||||
|
||||
from host_agent.app import create_application
|
||||
|
||||
|
||||
def main(argv: Sequence[str] | None = None) -> None:
|
||||
parser = argparse.ArgumentParser(description="Run the Device Host Agent")
|
||||
parser.parse_args(argv)
|
||||
create_application().run()
|
||||
Reference in New Issue
Block a user