Skip to content

module avail --no-indepth #150

@xdelaruelle

Description

@xdelaruelle

Some improvement on the module avail command. It is desirable to only get as result the default available names, not all the fully qualified names.

For instance, if you have a modulefile gcc/6.1.1, only returns gcc.

It should materialize through an option on module avail (something simpler than --i_only_want_to_see_the_default_names of course) and maybe also with an internal flag to set if this should be the default display mode.

This feature simplifies output in case of large modulefile catalog. It should also be used by shell completion scripts as in this case we only need to see the names of the current searching level.

This enhancement may also improve avail performances a bit, but not drastically as when we want to see modulefiles at level 1, it should go down level 2 to check there is at least one modulefile (to ensure directory has module-related content).

DevHints: should adapt findModules and getModules internal procedures to achieve this enhancement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions