Hidden statements can only target declared symbolic versions and not
those automatically defined (@default and @latest). Thus when a declared
`default` or `latest` symbol is set hidden, an auto-symbol is
automatically defnied instead (targeting highest module version
available).
Raise an error rather report a warning when the --not-user or
--not-group options to the module-hide or module-forbid commands are
used on Windows platform.
Issue is clearly localized this way when trying to load impacted
modules. Also as such error leads to skip remaining part of modulerc,
staff will fix it right away.
Ignore any `--not-user` or `--not-group` option set on `module-hide` or
`module-forbid` commands on Windows platform. Emit a warning message to
indicate these options are not supported.
Reword module-hide option `--allow-group' into `--not-group` to get a
generic term to designate that command does not apply to specified
groups. Such generic term could be reused on other future modulefile
commands, making this concept easier to understand as it applies with
the same meaning on several commands.
Reword module-hide option `--allow-user' into `--not-user` to get a
generic term to designate that command does not apply to specified
users. Such generic term could be reused on other future modulefile
commands, making this concept easier to understand as it applies with
the same meaning on several commands.
As it seems more consistent that any `is-avail mod` command returning
true should lead to a ``load mod`` command effectively loading a module,
-a/--all option does not apply to is-avail sub-command.
I think it would be worth adding a clarification about Perl (and other
language) modules vs. the environment modules described here, because
the use of the term "modules" for both can be confusing to new users.
Also fixed some typos and formatting.
Use inclusive terminology [1] to eliminate 'master' and 'slave' terms as
much as possible from code and documentation. 'master' has been changed
into 'main' and 'slave' into 'subordinate' or 'sub'.
After this change, some references to the 'master' and 'slave' word can
still be found in repository:
* `slaves` sub-command of `interp` Tcl command
* `--slave` option of `update-alternatives tool in RPM spec file
* `master_doc` attribute of Sphinx `conf.py` file
* git 'master' branch need to be renamed and tools referring it need to
be updated accordingly (configure, script/mpub, script/mrel)
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=49decddd39e5f6132ccd7d9fdc3d7c470b0061bb
Add support for the NO_COLOR environment variable
(https://no-color.org/) which when set (regardess of its value) prevents
the addition of ANSI color.
When set, NO_COLOR prevails over CLICOLOR and CLICOLOR_FORCE environment
variables. MODULES_COLOR overrides these tree variables.
Fixes#310