chore: add help in cli ioc commands for branch name
This commit is contained in:
+9
-3
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user