-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-CLI usage of nf-core download #3043
Comments
Sorry for the late reply. Technically, this should already be the case. The code has a check that should prevent prompts from being shown in non-interactive sessions: Lines 440 to 444 in 930ece5
Why this detection fails in your case, I can't tell. Have you tried to pipe the output to |
Is there a reason that you can't provide it on the same line as the command? eg. NXF_SINGULARITY_CACHEDIR="/path/to/cache" nf-core download Then as @MatthiasZepper says, the interactive prompt shouldn't show. And it is not super different to using a flag with the path after the command. |
I presume, that the original poster does not want to define a cache directory? |
Description of feature
Hi there,
Currently the
nf-core download
command doesn't permit a parameter-based answer to to theDefine $NXF_SINGULARITY_CACHEDIR f
question that pops up on the command-line interface. For the purposes of putting this command in a script, it would be handy to not have to interact with a command line prompt at all.Thanks for the useful tool!
The text was updated successfully, but these errors were encountered: