chore: add cli tool -- init skeleton

This commit is contained in:
Benjamin Labrecque
2026-07-03 13:12:41 +02:00
parent c65a6e1728
commit dfc19768fa
8 changed files with 716 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
import typer
from core.models import ServiceRegistry
service = typer.Typer(no_args_is_help=True)
@service.command()
def add(
name: str = typer.Option(..., "--name", "-n"),
):
registry = ServiceRegistry.read_from_config()
registry.add_service(name)
@service.command()
def list():
registry = ServiceRegistry.read_from_config()
services = registry.get_services()
for service in services:
print(service)