Skip to content

Commit 4d53149

Browse files
committed
doc: desc. variantifspec in NEWS/MIGRATING
1 parent 1f60121 commit 4d53149

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.aspell.en.pws

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
personal_ws-1.1 en 898
1+
personal_ws-1.1 en 901
22
ABBRVLIST
33
ActiveTcl
44
Adrien
@@ -738,6 +738,9 @@ sgrss
738738
sgrsy
739739
sgrtr
740740
sgrva
741+
sgrvade
742+
sgrvadehi
743+
sgrvahi
741744
sgrwa
742745
shellcheck
743746
shellname

MIGRATING.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,36 @@ You can also search for modules defining a specific variant value:
134134
.. note:: As extra match search implies additional modulefile evaluations, it
135135
is advised to build and use `Module cache`_ to improve search speed.
136136

137+
Two new elements, ``variant`` and ``variantifspec``, are added to the allowed
138+
value list of :mconfig:`avail_output` and :mconfig:`avail_terse_output`
139+
configuration options. The latter is set in the default value list of both
140+
options. When ``variant`` is set, variants and their possible values are
141+
reported along module they are associated to. When ``variantifspec`` is set,
142+
available variants are reported only if a variant is specified in search
143+
query.
144+
145+
.. parsed-literal::
146+
147+
:ps:`$` module config --reset avail_output
148+
:ps:`$` module config avail_output
149+
Modules Release 5.3.0 (2023-XX-XX)
150+
151+
- :sgrhi:`Config. name` ---------.- :sgrhi:`Value (set by if default overridden)` ---------------
152+
avail_output modulepath:alias:dirwsym:sym:tag:variantifspec:key
153+
:ps:`$` module avail foo
154+
--------------------- :sgrdi:`/path/to/modulefiles` ---------------------
155+
:sgrhi:`foo`/1.0 :sgrhi:`foo`/2.0
156+
157+
Key:
158+
:sgrdi:`modulepath`
159+
:ps:`$` module avail foo %a
160+
--------------------- :sgrdi:`/path/to/modulefiles` ---------------------
161+
:sgrhi:`foo`/1.0{:sgrvadehi:`%a`} :sgrhi:`foo`/2.0{:sgrvahi:`%a`,\ :sgrva:`b`,\ :sgrva:`c`}
162+
163+
Key:
164+
:sgrdi:`modulepath` {:sgrva:`%value`}={:sgrva:`toolchain=value`}
165+
:sgrde:`default-version` {:sgrva:`variant=value`}
166+
137167
Extra specifiers
138168
----------------
139169

NEWS.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ Modules 5.3.0 (not yet released)
130130
* Add :option:`--ignore-user-rc` command-line switch to enable
131131
:mconfig:`ignore_user_rc` configuration option and ignore user-specific
132132
module rc file for current execution.
133+
* Add the ``variantifspec`` element in the allowed value list of the
134+
:mconfig:`avail_output` and :mconfig:`avail_terse_output` configuration
135+
options. Set this new element in the default value list of both options.
136+
When set and if a variant is specified in search query, variants and their
137+
possible values are reported along the module they are associated to on
138+
:subcmd:`avail` command output.
133139

134140

135141
.. _5.2 release notes:

0 commit comments

Comments
 (0)