showing module category with module spider command
Hi, It would be very helpful for our users if module spider would output the category of the matches also-
so if I ran- module spider matplotlib
The output would be- Versions: py-matplotlib/2.1.2_py27 (viz) py-matplotlib/2.1.2_py36 (viz) py-matplotlib/2.2.2_py27 (some_other_cat) py-matplotlib/2.2.2_py36 (viz)
Thanks, Mark
This feature is not something that all sites are going to want. So I have added a hook to allow sites to "decorate" this output. See rt/uitSitePkg/mf/site-script/SitePackage.lua in the source tree for a complete example.
Please see Lmod 8.1.2 to see if it works for you.
Hi @rtmclay
Just wanted to say that it does actually work for us and that we successfully implemented your example, based on the category information provided in each module file.
Now, as far as I understand things, the spider_decoration hook has access to FullVT, which contains a module's fullName, Category, and propT. Do you think it would be possible to extend this to also expose the parentAA property?
We organize our modules in separate, field-based directories, that can be added to the user's $MODULEPATH by loading a specific module. So for instance, all our biology-related modules are in a /biology directory, and can be accessed by first loading the biology "category" module. Having that information available directly in the Spider output would be very useful for users, so they can know which "category" module to load first.
Hope this makes sense. Thanks!
I have added parentAA to fullVT and it is now passed to the spider decoration hook. Please test Lmod 8.6.6 to see if it works for you.
Thanks @rtmclay! It works perfectly, we successfully implemented a spider decorator using the parentAA information with 8.6.6. Good to close #382.