Merge pull request #167776 from hercules-ci/lib-modules-allow-disable-_modules.args-docs-internal

lib.modules: Allow making _module.args internal
This commit is contained in:
Robert Hensing 2022-04-30 13:43:08 +02:00 committed by GitHub
commit c2451ed1a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,10 @@ rec {
type = types.lazyAttrsOf types.raw;
# Only render documentation once at the root of the option tree,
# not for all individual submodules.
internal = prefix != [];
# Allow merging option decls to make this internal regardless.
${if prefix == []
then null # unset => visible
else "internal"} = true;
# TODO: Change the type of this option to a submodule with a
# freeformType, so that individual arguments can be documented
# separately