-
Notifications
You must be signed in to change notification settings - Fork 118
Description
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.