feature: dynamicallt allocate port and save in service registry. Update iocs overview on service creation
This commit is contained in:
+4
-2
@@ -12,13 +12,15 @@ REPO_ROOT = get_git_root(__file__)
|
||||
@service.command()
|
||||
def add(
|
||||
name: str = typer.Option(..., "--name", "-n"),
|
||||
ioc_port: int = typer.Option(..., "--ioc-port", "-p"),
|
||||
user: str = typer.Option(..., "--user", "-u"),
|
||||
ioc_description: str = typer.Option(
|
||||
..., "--ioc-description", "-d", help="See <repo-root>/docs/ioc/ioc_overview.md for examples"
|
||||
),
|
||||
):
|
||||
init_logging()
|
||||
ServiceCreator(
|
||||
ioc_port=ioc_port, # TODO: read from registry
|
||||
user=user, # TODO: read from 'whoami'?
|
||||
ioc_description=ioc_description,
|
||||
).add_service(name=name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user