toolforge-components-cli 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl

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.
@@ -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(name="show", help="Show details of a specific deployment.")
489
- @click.argument("deployment_id")
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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: toolforge-components-cli
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: Toolforge components client
5
5
  License: GPLv3
6
6
  Author: Slavina Stefanova
@@ -0,0 +1,9 @@
1
+ toolforge_components_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ toolforge_components_cli/cli.py,sha256=ra6YW_Ez0K-WeiV-Ithb5vtU2e1buaT_MArcDHEu9IA,17998
3
+ toolforge_components_cli/components.py,sha256=ISGD-ahjp6mndIgCxU6V98X0Xcb7abJuLjc_Rk4CjZU,3128
4
+ toolforge_components_cli/config.py,sha256=wT8-kciiOIYcjoB9EELjc2FQARooQSBQlZv3elvMH2k,730
5
+ toolforge_components_cli-0.0.9.dist-info/LICENSE,sha256=4cCtcomD2KVzNeUs8QZPGv_R1FQXPYzr0-2LSnK0hwQ,35121
6
+ toolforge_components_cli-0.0.9.dist-info/METADATA,sha256=EkHkwTb-B9tjyeEr5mrYvks50Hv7BY11Z76dwab9NFc,1694
7
+ toolforge_components_cli-0.0.9.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
+ toolforge_components_cli-0.0.9.dist-info/entry_points.txt,sha256=D1g7NaMicWBsSJmJXBVU9eUnVfg45d_o4Io7LQe-SWE,74
9
+ toolforge_components_cli-0.0.9.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- toolforge_components_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- toolforge_components_cli/cli.py,sha256=9iIJTfOQ567ULs6qaCCVB2ddWnbSN49J-47lSOs8igk,17380
3
- toolforge_components_cli/components.py,sha256=ISGD-ahjp6mndIgCxU6V98X0Xcb7abJuLjc_Rk4CjZU,3128
4
- toolforge_components_cli/config.py,sha256=wT8-kciiOIYcjoB9EELjc2FQARooQSBQlZv3elvMH2k,730
5
- toolforge_components_cli-0.0.7.dist-info/LICENSE,sha256=4cCtcomD2KVzNeUs8QZPGv_R1FQXPYzr0-2LSnK0hwQ,35121
6
- toolforge_components_cli-0.0.7.dist-info/METADATA,sha256=AWvAZpN1U6f6YwCnYopvZ55W0qvlMo5j0u70aHz4jdQ,1694
7
- toolforge_components_cli-0.0.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8
- toolforge_components_cli-0.0.7.dist-info/entry_points.txt,sha256=D1g7NaMicWBsSJmJXBVU9eUnVfg45d_o4Io7LQe-SWE,74
9
- toolforge_components_cli-0.0.7.dist-info/RECORD,,