@@ -139,15 +139,23 @@ def openapi_to_module(
139
139
140
140
@app .command (name = "synchronize-library" )
141
141
def sync_library (
142
- playbook_url = typer .Argument (..., help = "URL of the Playbook API" ),
143
- api_key = typer .Argument (..., help = "Secret key to connect to the Playbook API" ),
144
- modules_path : Path = typer .Argument ("." , help = "Path to the playbook modules" ),
142
+ playbook_url = typer .Argument (
143
+ ..., envvar = "PLAYBOOK_URL" , help = "URL of the Playbook API"
144
+ ),
145
+ api_key = typer .Argument (
146
+ ..., envvar = "PLAYBOOK_API_KEY" , help = "Secret key to connect to the Playbook API"
147
+ ),
148
+ modules_path : Path = typer .Option ("." , help = "Path to the playbook modules" ),
145
149
module : str = typer .Option ("" , help = "Module to deploy. Default to all modules" ),
146
150
check_image_on_registry : bool = typer .Option (
147
151
False , help = "Whether to check registry for existing image"
148
152
),
149
- registry_pat : str = typer .Option ("" , help = "Docker registry personal access token" ),
150
- registry_user : str = typer .Option ("" , help = "Docker registry username" ),
153
+ registry_pat : str = typer .Option (
154
+ "" , envvar = "REGISTRY_PAT" , help = "Docker registry personal access token"
155
+ ),
156
+ registry_user : str = typer .Option (
157
+ "" , envvar = "REGISTRY_USER" , help = "Docker registry username"
158
+ ),
151
159
):
152
160
"""
153
161
Synchronize the module library to Sekoia.io
0 commit comments