File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- CTL: List available transforms if no name is provided
1+ CTL: List available transforms and generators  if no name is provided
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ def render(
267267    variables_dict  =  parse_cli_vars (variables )
268268    repository_config  =  get_repository_config (Path (config .INFRAHUB_REPO_CONFIG_FILE ))
269269
270-     if  list_available :
270+     if  list_available   or   not   transform_name :
271271        list_jinja2_transforms (config = repository_config )
272272        return 
273273
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async def run(
2323) ->  None :  # pylint: disable=unused-argument 
2424    repository_config  =  get_repository_config (Path (config .INFRAHUB_REPO_CONFIG_FILE ))
2525
26-     if  list_available :
26+     if  list_available   or   not   generator_name :
2727        list_generators (repository_config = repository_config )
2828        return 
2929
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments