File tree 1 file changed +19
-1
lines changed
services/web/server/src/simcore_service_webserver
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 19
19
import typer
20
20
from aiohttp import web
21
21
from settings_library .utils_cli import create_settings_command
22
+ from typing_extensions import Annotated
22
23
23
24
from .application_settings import ApplicationSettings
24
25
from .login import cli as login_cli
@@ -81,7 +82,24 @@ async def app_factory() -> web.Application:
81
82
create_settings_command (settings_cls = ApplicationSettings , logger = _logger )
82
83
)
83
84
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
+ )
85
103
86
104
87
105
@main .command ()
You can’t perform that action at this time.
0 commit comments