Merge pull request #48251 from samueldr/feature/separated-string-description
lib/types: enhances separatedString's description.
This commit is contained in:
commit
1bde5ec7e0
@ -194,7 +194,10 @@ rec {
|
|||||||
# separator between the values).
|
# separator between the values).
|
||||||
separatedString = sep: mkOptionType rec {
|
separatedString = sep: mkOptionType rec {
|
||||||
name = "separatedString";
|
name = "separatedString";
|
||||||
description = "string";
|
description = if sep == ""
|
||||||
|
then "Concatenated string" # for types.string.
|
||||||
|
else "strings concatenated with ${builtins.toJSON sep}"
|
||||||
|
;
|
||||||
check = isString;
|
check = isString;
|
||||||
merge = loc: defs: concatStringsSep sep (getValues defs);
|
merge = loc: defs: concatStringsSep sep (getValues defs);
|
||||||
functor = (defaultFunctor name) // {
|
functor = (defaultFunctor name) // {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user