Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changelog/140.fixed.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CTL: List available transforms if no name is provided
CTL: List available transforms and generators if no name is provided
2 changes: 1 addition & 1 deletion infrahub_sdk/ctl/cli_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def render(
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_jinja2_transforms(config=repository_config)
return

Expand Down
2 changes: 1 addition & 1 deletion infrahub_sdk/ctl/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def run(
) -> None: # pylint: disable=unused-argument
repository_config = get_repository_config(Path(config.INFRAHUB_REPO_CONFIG_FILE))

if list_available:
if list_available or not generator_name:
list_generators(repository_config=repository_config)
return

Expand Down