Skip to content

Export module file #447

@leoheck

Description

@leoheck

Hi, I would like to suggest something like a module export feature if we don't have such thing of course. This would export the modulefile to a simple env.sh script that you can share and use in other computers that do not have a module environment configured.

For instance, I used to manage modules and software/tools in my research group. And most of the time, students would like to have a set of tools in their own computers. The easiest way for me to do that was to copy the tool folder as it is, and then port the modulefile to a script like tool-env.sh to be loaded directly. It would be nice to have such functionality where modulefiles could be exported and converted easily to this bash format instead.

# to export a single module
module export <modulename>

# to export all modulefiles each one in its own file
module export 

Also, a flag would be good to set the output path, but the default option would be to create the file where the command was executed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions