You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(side-note:
I also tried to figure out if I could manually format the output in long-mode, however, I couldn't figure out from the documentation how to set the field-widths, is it even possible?
)
Additional context
The installed version is:
Modules Release 5.3.0 (2023-05-14)
Thank you for your suggestion.
Adding timestamp and variants to json ouput will increase the response time significantly.
We need to stat each module file to get the mtime, and evaluate them for the variants.
Perhaps the right answer would be an option to configure whatever we need in json output.
I think if the --output could be enabled for -json output it would be simpler, because then one can alter the output format using --output arguments. I would prefer this rather than adding new env-vars for controlling output.
Also, in the link you provide it isn't clear to me which one lists the date-stamp.
I can see the downside, so the default should definitely prefer swift response times, then configuration can be used where timings are not an issue. So agree there!
Activity
adrien-cotte commentedon Feb 23, 2026
Hi @zerothi
Thank you for your suggestion.
Adding timestamp and variants to json ouput will increase the response time significantly.
We need to stat each module file to get the mtime, and evaluate them for the variants.
Perhaps the right answer would be an option to configure whatever we need in json output.
Here is the list of configurations we plan to add in v5.7:
https://modules.readthedocs.io/en/latest/design/output-configuration.html#configuration
What do you think about something like
<cmd>_json_output? (ex:avail_outputandavail_json_output)zerothi commentedon Feb 23, 2026
Thanks for your return.
I think if the
--outputcould be enabled for-jsonoutput it would be simpler, because then one can alter the output format using--outputarguments. I would prefer this rather than adding new env-vars for controlling output.Also, in the link you provide it isn't clear to me which one lists the date-stamp.
I can see the downside, so the default should definitely prefer swift response times, then configuration can be used where timings are not an issue. So agree there!
adrien-cotte commentedon Feb 23, 2026
Yep, both could be great I think.
Add
--outputsupport with--json, andavail_json_outputconfig.