Skip to content

Commit 344c8d3

Browse files
authored
Merge pull request #141 from opsmill/pog-missing-transform-name
List available transforms if no name is provided
2 parents 761a1c7 + 1a3a7f3 commit 344c8d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/140.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CTL: List available transforms if no name is provided

infrahub_sdk/ctl/cli_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def transform(
317317
variables_dict = parse_cli_vars(variables)
318318
repository_config = get_repository_config(Path(config.INFRAHUB_REPO_CONFIG_FILE))
319319

320-
if list_available:
320+
if list_available or not transform_name:
321321
list_transforms(config=repository_config)
322322
return
323323

0 commit comments

Comments
 (0)