toolforge-components-cli 0.0.19__tar.gz → 0.0.20__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toolforge-components-cli
3
- Version: 0.0.19
3
+ Version: 0.0.20
4
4
  Summary: Toolforge components client
5
5
  License: GPLv3
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "toolforge-components-cli"
3
- version = "0.0.19"
3
+ version = "0.0.20"
4
4
  description = "Toolforge components client"
5
5
  authors = ["Slavina Stefanova <sstefanova@wikimedia.org>"]
6
6
  license = "GPLv3"
@@ -521,6 +521,19 @@ def deployment_list(ctx, as_json: bool) -> None:
521
521
  return
522
522
 
523
523
  deployments = response.get("data", {}).get("deployments", [])
524
+ if not deployments:
525
+ click.echo(
526
+ click.style(
527
+ (
528
+ "No deployments found, you can create one using `toolforge components deployment create`,"
529
+ + "run `toolforge components deployment create --help` for more details"
530
+ ),
531
+ fg="yellow",
532
+ ),
533
+ err=True,
534
+ )
535
+ return
536
+
524
537
  formatted_deployments = [
525
538
  [
526
539
  deployment["deploy_id"],