Hi! I want to batch bump-versions of the openms to...
# tools
j
Hi! I want to batch bump-versions of the openms tools in nf-core modules. There is this handy
--dir
flag, but I cannot get it to run. Can anyone help me out quickly what I am doing wrong? Thanks!
Copy code
gitpod /workspace/modules (master) $ nf-core modules test --dir openms --update


                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\ 
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'

    nf-core/tools version 3.2.0.dev0 - https://nf-co.re


                                                                                                    
 Usage: nf-core modules test [OPTIONS] tool or tool/subtool                                     
                                                                                                    
 Try 'nf-core modules test -h' for help                                                             
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────╮
│ Invalid value for '-d' / '--dir': Path 'openms' does not exist.                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
m
how about
--dir modules/openms
?
what maximes says 👇🏻
m
--dir modules/nf-core/openms
?
j
I run
nf-core modules test --dir modules/nf-core/openms --update --once
now, then there is a prompt which tool to update, I did
openms
and now its generating nf-test snapshot since a couple of minutes. I hope that did the trick 🙂 thanks!
Looks like it worked! My brain is trained by nf-core tools to only specify
tool/subtool
when running test. Do you think it would be easy to switch to
--dir tool/subtool
and not
--dir modules/nf-core/tool
?
In any case
--dir
is just awesome!
m
well, we have that already, the command structure is
nf-core modules update $OPTIONS $MODULE_NAME
and you get prompted if you don't provide a
$MODULE_NAME
, like it was in your case.
--dir
is just there to set the working directory
but maybe what you want is more something like https://github.com/nf-core/tools/issues/3140
j
But update is to update nf-core modules in pipelines right? I try to bump version and update snapshots of nf-core modules
m
to update them to the version available on nf-core/modules. to bump a module, you need to do that in the nf-core/modules repo
j
Got it 👍