diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-01-29 09:03:08 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-05-18 17:50:04 +0200 |
commit | fb0e7423cc88e63f5803f42adb663738017e1091 (patch) | |
tree | 1608e874779fa55dfd75d6447145af57c8651118 | |
parent | b688f237587825ac3d2949d698a74ec21911630d (diff) |
lib.types.attrTag: Remove tags from description
You can find them in the sub-options now.
-rwxr-xr-x | lib/tests/modules.sh | 12 | ||||
-rw-r--r-- | lib/types.nix | 3 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lib/tests/modules.sh b/lib/tests/modules.sh index 609a002e6dc32..fab4c5115772d 100755 --- a/lib/tests/modules.sh +++ b/lib/tests/modules.sh @@ -96,12 +96,12 @@ checkConfigOutput '^true$' config.assertion ./gvariant.nix # types.attrTag checkConfigOutput '^true$' config.okChecks ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.syntaxError. is not of type .attribute-tagged union of left, right' config.intStrings.syntaxError ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.syntaxError2. is not of type .attribute-tagged union of left, right' config.intStrings.syntaxError2 ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.syntaxError3. is not of type .attribute-tagged union of left, right' config.intStrings.syntaxError3 ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.syntaxError4. is not of type .attribute-tagged union of left, right' config.intStrings.syntaxError4 ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.mergeError. is not of type .attribute-tagged union of left, right' config.intStrings.mergeError ./types-attrTag.nix -checkConfigError 'A definition for option .intStrings\.badTagError. is not of type .attribute-tagged union of left, right' config.intStrings.badTagError ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.syntaxError. is not of type .attribute-tagged union' config.intStrings.syntaxError ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.syntaxError2. is not of type .attribute-tagged union' config.intStrings.syntaxError2 ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.syntaxError3. is not of type .attribute-tagged union' config.intStrings.syntaxError3 ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.syntaxError4. is not of type .attribute-tagged union' config.intStrings.syntaxError4 ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.mergeError. is not of type .attribute-tagged union' config.intStrings.mergeError ./types-attrTag.nix +checkConfigError 'A definition for option .intStrings\.badTagError. is not of type .attribute-tagged union' config.intStrings.badTagError ./types-attrTag.nix checkConfigError 'A definition for option .intStrings\.badTagTypeError\.left. is not of type .signed integer.' config.intStrings.badTagTypeError.left ./types-attrTag.nix checkConfigError 'A definition for option .nested\.right\.left. is not of type .signed integer.' config.nested.right.left ./types-attrTag.nix diff --git a/lib/types.nix b/lib/types.nix index faaa872025325..1d4712dff5289 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -632,7 +632,8 @@ rec { in mkOptionType { name = "attrTag"; - description = "attribute-tagged union of ${choicesStr}"; + description = "attribute-tagged union"; + descriptionClass = "noun"; getSubOptions = prefix: mapAttrs (tagName: tagOption: { |