1616 from generator .engine import NextflowGenerator , process_map
1717 from generator .inspect import NextflowInspector
1818 from generator .report import FlowcraftReport
19- from generator .recipe import brew_recipe , available_recipes
19+ from generator .recipe import brew_innuendo , brew_recipe , list_recipes
2020 from generator .pipeline_parser import parse_pipeline , SanityError
2121 from generator .process_details import proc_collector , colored_print
2222 import generator .error_handling as eh
2525 from flowcraft .generator .engine import NextflowGenerator , process_map
2626 from flowcraft .generator .inspect import NextflowInspector
2727 from flowcraft .generator .report import FlowcraftReport
28- from flowcraft .generator .recipe import brew_recipe , available_recipes
28+ from flowcraft .generator .recipe import brew_innuendo , \
29+ brew_recipe , list_recipes
2930 from flowcraft .generator .pipeline_parser import parse_pipeline , \
3031 SanityError
3132 from flowcraft .generator .process_details import proc_collector , \
@@ -77,13 +78,22 @@ def get_args(args=None):
7778 const = True , help = "Check only the validity of the pipeline "
7879 "string and exit." )
7980 group_lists .add_argument (
80- "-L" , "--detailed -list" , action = "store_const" , dest = "detailed_list" ,
81+ "-L" , "--component -list" , action = "store_const" , dest = "detailed_list" ,
8182 const = True , help = "Print a detailed description for all the "
82- "currently available processes" )
83+ "currently available processes. " )
8384 group_lists .add_argument (
84- "-l" , "--short -list" , action = "store_const" , dest = "short_list" ,
85+ "-l" , "--component -list-short " , action = "store_const" , dest = "short_list" ,
8586 const = True , help = "Print a short list of the currently "
86- "available processes" )
87+ "available processes." )
88+ group_lists .add_argument (
89+ "--recipe-list" , dest = "recipe_list" , action = "store_const" , const = True ,
90+ help = "Print a short list of the currently available recipes."
91+ )
92+ group_lists .add_argument (
93+ "--recipe-list-short" , dest = "recipe_list_short" , action = "store_const" ,
94+ const = True , help = "Print a condensed list of the currently available "
95+ "recipes"
96+ )
8797 build_parser .add_argument (
8898 "-cr" , "--check-recipe" , dest = "check_recipe" ,
8999 action = "store_const" , const = True ,
@@ -277,6 +287,12 @@ def build(args):
277287 if args .export_params or args .export_directives :
278288 logger .setLevel (logging .ERROR )
279289
290+ if args .recipe_list_short :
291+ list_recipes ()
292+
293+ if args .recipe_list :
294+ list_recipes (full = True )
295+
280296 welcome = [
281297 "========= F L O W C R A F T =========" ,
282298 "Build mode\n "
@@ -293,13 +309,14 @@ def build(args):
293309 # appropriate recipe
294310 if args .recipe :
295311 if args .recipe == "innuendo" :
296- pipeline_string = brew_recipe (args , available_recipes )
312+ pipeline_string = brew_innuendo (args )
297313 else :
298- pipeline_string = available_recipes [args .recipe ]
314+ # pipeline_string = available_recipes[args.recipe]
315+ pipeline_string = brew_recipe (args .recipe )
299316 if args .tasks :
300317 logger .warning (colored_print (
301- "-t parameter will be ignored for recipe: {}\n "
302- . format ( args .recipe ), "yellow_bold" )
318+ "-t parameter will be ignored for recipe: {}\n " . format (
319+ args .recipe ), "yellow_bold" )
303320 )
304321
305322 if args .check_recipe :
0 commit comments