@@ -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
0 commit comments