toolforge-components-cli 0.0.7__tar.gz → 0.0.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/PKG-INFO +1 -1
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/pyproject.toml +1 -1
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/cli.py +22 -2
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/LICENSE +0 -0
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/README.md +0 -0
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/__init__.py +0 -0
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/components.py +0 -0
- {toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/config.py +0 -0
{toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/cli.py
RENAMED
|
@@ -205,6 +205,23 @@ def config_show(ctx, as_json: bool) -> None:
|
|
|
205
205
|
_display_config(response.get("data", {}), as_json)
|
|
206
206
|
|
|
207
207
|
|
|
208
|
+
@config.command(
|
|
209
|
+
name="generate",
|
|
210
|
+
help="Generate an example tool configuration from the existing jobs if possible.",
|
|
211
|
+
)
|
|
212
|
+
@click.option(
|
|
213
|
+
"--json",
|
|
214
|
+
"as_json",
|
|
215
|
+
is_flag=True,
|
|
216
|
+
help="If set, will output in JSON format",
|
|
217
|
+
)
|
|
218
|
+
@click.pass_context
|
|
219
|
+
def config_generate(ctx, as_json: bool) -> None:
|
|
220
|
+
components_client = ctx.obj["components_client"]
|
|
221
|
+
response = components_client.get("/config/generate", display_messages=(not as_json))
|
|
222
|
+
_display_config(response.get("data", {}), as_json)
|
|
223
|
+
|
|
224
|
+
|
|
208
225
|
@config.command(name="delete", help="Delete the tool's configuration.")
|
|
209
226
|
@click.option(
|
|
210
227
|
"--json",
|
|
@@ -485,8 +502,11 @@ def deployment_list(ctx, as_json: bool) -> None:
|
|
|
485
502
|
)
|
|
486
503
|
|
|
487
504
|
|
|
488
|
-
@deployment.command(
|
|
489
|
-
|
|
505
|
+
@deployment.command(
|
|
506
|
+
name="show",
|
|
507
|
+
help="Show details of a specific deployment.\nIf no deployment is specified, the latest deployment is returned.",
|
|
508
|
+
)
|
|
509
|
+
@click.argument("deployment_id", required=False, default="latest")
|
|
490
510
|
@click.option(
|
|
491
511
|
"--json",
|
|
492
512
|
"as_json",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{toolforge_components_cli-0.0.7 → toolforge_components_cli-0.0.9}/toolforge_components_cli/config.py
RENAMED
|
File without changes
|