chore: add help in cli ioc commands for branch name

This commit is contained in:
Benjamin Labrecque
2026-07-27 14:18:07 +02:00
parent 6fd97bf813
commit 8268a23a8f
+9 -3
View File
@@ -22,7 +22,9 @@ SERVICE_NAME_HELP = "Service name in lower case"
def install(
env: IOC_ENV = typer.Option(..., "--env"),
service_name_lower: str = typer.Option(..., "--service-name", "-s", help=SERVICE_NAME_HELP),
branch_name: str | None = typer.Option(None, "--branch-name", "-b"),
branch_name: str | None = typer.Option(
None, "--branch-name", "-b", help="Default is 'feature/add-service-{service-name}'"
),
):
if branch_name is None:
branch_name = f"feature/add-service-{service_name_lower}"
@@ -53,7 +55,9 @@ def install_all(
def start(
env: IOC_ENV = typer.Option(..., "--env"),
service_name_lower: str = typer.Option(..., "--service-name", "-s", help=SERVICE_NAME_HELP),
branch_name: str | None = typer.Option(None, "--branch-name", "-b"),
branch_name: str | None = typer.Option(
None, "--branch-name", "-b", help="Default is 'feature/add-service-{service-name}'"
),
):
if branch_name is None:
branch_name = f"feature/add-service-{service_name_lower}"
@@ -81,7 +85,9 @@ def start_all(
def restart(
env: IOC_ENV = typer.Option(..., "--env"),
service_name_lower: str = typer.Option(..., "--service-name", "-s", help=SERVICE_NAME_HELP),
branch_name: str | None = typer.Option(None, "--branch-name", "-b"),
branch_name: str | None = typer.Option(
None, "--branch-name", "-b", help="Default is 'feature/add-service-{service-name}'"
),
):
if branch_name is None:
branch_name = f"feature/add-service-{service_name_lower}"