Distinguish a specific configuration option "spider_indepth" for spider
sub-command than "avail_indepth" used for avail sub-command.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Add support for "hidden" element into all *_output options to unveil
hidden modules on avail, list and spider sub-command.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Add depends-on-any modulefile command that is equivalent to prereq-any.
This modulefile command is available on Lmod since version 8.7.41.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Add --dumpname option to module command. It returns the name of the
module implementation, here "Modules". This option is also available on
Lmod version 8.7.50+.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Introduce the --with-spider-output and --with-spider-terse-output
configure options to choose at installation time the default list of
elements to report on spider command.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
These 2 options control the content of the output of the spider command
in regular and terse mode. By default, same list of element to report
than avail command is configured.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Add the "spider" sub-command that scans all the enabled modulepaths and
the modulepaths enabled by modules in every modulepaths to return the
modules matching the search query.
All kind of options and search queries supported by avail sub-command
are supported by spider.
spider is implemented as a two-step process:
* find all modulepaths through a scan evaluation to fetch all "use"
elements
* perform an avail on all these modulepaths
Properties of the spider sub-command:
* insensitive match search enabled
* shortest shortcut: "spi"
* --json output support
* --all/-a to report hidden modules
* always_read_full_file: true
* allow_noname_spec: true
* allow_xt_spec: true
* parse arguments as module specification: true
* only callable from top level: true
* accept_minus_arg: true
* collect tags: true
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Update cmdModuleAvail to pass the list of enabled modulepath as argument
rather resolving this list within the procedure.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Add the ability to perform an extra match search on the "use"
sub-command of module command in modulefile.
Also consider direct edition of the MODULEPATH environment variable
with append-path or prepend-path modulefile commands as result for "use"
extra match element.
Modulepath arguments set on these commands are recorded in their
absolute path form.
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
filesystem on Cygwin platform is responding in an unexpected way. Newly
created files for the tests are considered "limited access" which should
not be the case, considering that umask is 0022.
Skip these cache build and use tests on Cygwin platform for now