@@ -456,12 +456,13 @@ def command_pipelines_download(
456456 default = False ,
457457 help = "Show hidden params which don't normally need changing" ,
458458)
459+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
459460@click .pass_context
460- def command_pipelines_create_params_file (ctx , pipeline , revision , output , force , show_hidden ):
461+ def command_pipelines_create_params_file (ctx , pipeline , revision , output , force , show_hidden , no_prompts ):
461462 """
462463 Build a parameter file for a pipeline.
463464 """
464- pipelines_create_params_file (ctx , pipeline , revision , output , force , show_hidden )
465+ pipelines_create_params_file (ctx , pipeline , revision , output , force , show_hidden , no_prompts )
465466
466467
467468# nf-core pipelines launch
@@ -515,6 +516,7 @@ def command_pipelines_create_params_file(ctx, pipeline, revision, output, force,
515516 default = "https://nf-co.re/launch" ,
516517 help = "Customise the builder URL (for development work)" ,
517518)
519+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
518520@click .pass_context
519521def command_pipelines_launch (
520522 ctx ,
@@ -527,11 +529,14 @@ def command_pipelines_launch(
527529 save_all ,
528530 show_hidden ,
529531 url ,
532+ no_prompts ,
530533):
531534 """
532535 Launch a pipeline using a web GUI or command line prompts.
533536 """
534- pipelines_launch (ctx , pipeline , id , revision , command_only , params_in , params_out , save_all , show_hidden , url )
537+ pipelines_launch (
538+ ctx , pipeline , id , revision , command_only , params_in , params_out , save_all , show_hidden , url , no_prompts
539+ )
535540
536541
537542# nf-core pipelines list
@@ -626,14 +631,33 @@ def rocrate(
626631@click .option ("-u" , "--username" , type = str , help = "GitHub PR: auth username." )
627632@click .option ("-t" , "--template-yaml" , help = "Pass a YAML file to customize the template" )
628633@click .option ("-b" , "--blog-post" , type = str , help = "Link to the blog post" )
634+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
629635def command_pipelines_sync (
630- ctx , directory , from_branch , pull_request , github_repository , username , template_yaml , force_pr , blog_post
636+ ctx ,
637+ directory ,
638+ from_branch ,
639+ pull_request ,
640+ github_repository ,
641+ username ,
642+ template_yaml ,
643+ force_pr ,
644+ blog_post ,
645+ no_prompts ,
631646):
632647 """
633648 Sync a pipeline [cyan i]TEMPLATE[/] branch with the nf-core template.
634649 """
635650 pipelines_sync (
636- ctx , directory , from_branch , pull_request , github_repository , username , template_yaml , force_pr , blog_post
651+ ctx ,
652+ directory ,
653+ from_branch ,
654+ pull_request ,
655+ github_repository ,
656+ username ,
657+ template_yaml ,
658+ force_pr ,
659+ blog_post ,
660+ no_prompts ,
637661 )
638662
639663
@@ -2142,14 +2166,27 @@ def command_create_logo(logo_text, directory, name, theme, width, format, force)
21422166@click .option ("-g" , "--github-repository" , type = str , help = "GitHub PR: target repository." )
21432167@click .option ("-u" , "--username" , type = str , help = "GitHub PR: auth username." )
21442168@click .option ("-t" , "--template-yaml" , help = "Pass a YAML file to customize the template" )
2145- def command_sync (ctx , directory , from_branch , pull_request , github_repository , username , template_yaml , force_pr ):
2169+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
2170+ def command_sync (
2171+ ctx , directory , from_branch , pull_request , github_repository , username , template_yaml , force_pr , no_prompts
2172+ ):
21462173 """
21472174 Use `nf-core pipelines sync` instead.
21482175 """
21492176 log .warning (
21502177 "The `[magenta]nf-core sync[/]` command is deprecated. Use `[magenta]nf-core pipelines sync[/]` instead."
21512178 )
2152- pipelines_sync (ctx , directory , from_branch , pull_request , github_repository , username , template_yaml , force_pr )
2179+ pipelines_sync (
2180+ ctx ,
2181+ directory ,
2182+ from_branch ,
2183+ pull_request ,
2184+ github_repository ,
2185+ username ,
2186+ template_yaml ,
2187+ force_pr ,
2188+ no_prompts = no_prompts ,
2189+ )
21532190
21542191
21552192# nf-core bump-version (deprecated)
@@ -2250,6 +2287,7 @@ def command_list(ctx, keywords, sort, json, show_archived):
22502287 default = "https://nf-co.re/launch" ,
22512288 help = "Customise the builder URL (for development work)" ,
22522289)
2290+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
22532291@click .pass_context
22542292def command_launch (
22552293 ctx ,
@@ -2262,14 +2300,17 @@ def command_launch(
22622300 save_all ,
22632301 show_hidden ,
22642302 url ,
2303+ no_prompts ,
22652304):
22662305 """
22672306 Use `nf-core pipelines launch` instead.
22682307 """
22692308 log .warning (
22702309 "The `[magenta]nf-core launch[/]` command is deprecated. Use `[magenta]nf-core pipelines launch[/]` instead."
22712310 )
2272- pipelines_launch (ctx , pipeline , id , revision , command_only , params_in , params_out , save_all , show_hidden , url )
2311+ pipelines_launch (
2312+ ctx , pipeline , id , revision , command_only , params_in , params_out , save_all , show_hidden , url , no_prompts
2313+ )
22732314
22742315
22752316# nf-core create-params-file (deprecated)
@@ -2292,14 +2333,15 @@ def command_launch(
22922333 default = False ,
22932334 help = "Show hidden params which don't normally need changing" ,
22942335)
2295- def command_create_params_file (pipeline , revision , output , force , show_hidden ):
2336+ @click .option ("-n" , "--no-prompts" , is_flag = True , default = False , help = "Run without prompting for user input" )
2337+ def command_create_params_file (pipeline , revision , output , force , show_hidden , no_prompts ):
22962338 """
22972339 Use `nf-core pipelines create-params-file` instead.
22982340 """
22992341 log .warning (
23002342 "The `[magenta]nf-core create-params-file[/]` command is deprecated. Use `[magenta]nf-core pipelines create-params-file[/]` instead."
23012343 )
2302- pipelines_create_params_file (pipeline , revision , output , force , show_hidden )
2344+ pipelines_create_params_file (pipeline , revision , output , force , show_hidden , no_prompts )
23032345
23042346
23052347# nf-core download (deprecated)
0 commit comments