From 1a3a7f3845865700272c8126bb4b3a1863a9863b Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Tue, 12 Nov 2024 16:38:23 +0100 Subject: [PATCH] List available transforms if no name is provided Fixes #140 --- changelog/140.fixed.md | 1 + infrahub_sdk/ctl/cli_commands.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/140.fixed.md diff --git a/changelog/140.fixed.md b/changelog/140.fixed.md new file mode 100644 index 00000000..9ffcfd5d --- /dev/null +++ b/changelog/140.fixed.md @@ -0,0 +1 @@ +CTL: List available transforms if no name is provided diff --git a/infrahub_sdk/ctl/cli_commands.py b/infrahub_sdk/ctl/cli_commands.py index baf5231b..939d23ad 100644 --- a/infrahub_sdk/ctl/cli_commands.py +++ b/infrahub_sdk/ctl/cli_commands.py @@ -317,7 +317,7 @@ def transform( variables_dict = parse_cli_vars(variables) repository_config = get_repository_config(Path(config.INFRAHUB_REPO_CONFIG_FILE)) - if list_available: + if list_available or not transform_name: list_transforms(config=repository_config) return