Skip to content

Commit 248e192

Browse files
fix typer arguments
1 parent d3ec60d commit 248e192

File tree

1 file changed

+19
-1
lines changed
  • services/web/server/src/simcore_service_webserver

1 file changed

+19
-1
lines changed

services/web/server/src/simcore_service_webserver/cli.py

+19-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import typer
2020
from aiohttp import web
2121
from settings_library.utils_cli import create_settings_command
22+
from typing_extensions import Annotated
2223

2324
from .application_settings import ApplicationSettings
2425
from .login import cli as login_cli
@@ -81,7 +82,24 @@ async def app_factory() -> web.Application:
8182
create_settings_command(settings_cls=ApplicationSettings, logger=_logger)
8283
)
8384

84-
main.command()(login_cli.invitations)
85+
86+
@main.command()
87+
def invitations(
88+
base_url: str,
89+
issuer_email: str,
90+
trial_days: Annotated[int | None, typer.Argument()] = None,
91+
user_id: int = 1,
92+
num_codes: int = 15,
93+
code_length: int = 30,
94+
):
95+
login_cli.invitations(
96+
base_url=base_url,
97+
issuer_email=issuer_email,
98+
trial_days=trial_days,
99+
user_id=user_id,
100+
num_codes=num_codes,
101+
code_length=code_length,
102+
)
85103

86104

87105
@main.command()

0 commit comments

Comments
 (0)