Skip to content

Hide cluster modules with hook #38

@wpoely86

Description

@wpoely86

Instead of patching Lmod to hide the cluster modules, you can also use a hook.

Untested code below:

local function visible_hook(modT)
    -- modT is a table with: fullName, sn, fn and isVisible
    -- The latter is a boolean to determine if a module is visible or not

    if modT.fullName:find("cluster/%.") then
        modT.isVisible = false
    end
end

hook.register("isVisibleHook", visible_hook)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions