krebs {{absolute-,}path,user}name: mergeOneOption
This commit is contained in:
parent
cda4c2d96b
commit
8353b1293e
@ -335,6 +335,7 @@ types // rec {
|
||||
absolute-pathname = mkOptionType {
|
||||
name = "POSIX absolute pathname";
|
||||
check = s: s == "/" || (pathname.check s && substring 0 1 s == "/");
|
||||
merge = mergeOneOption;
|
||||
};
|
||||
|
||||
# POSIX.1‐2013, 3.267 Pathname
|
||||
@ -342,11 +343,13 @@ types // rec {
|
||||
pathname = mkOptionType {
|
||||
name = "POSIX pathname";
|
||||
check = s: isString s && all filename.check (splitString "/" s);
|
||||
merge = mergeOneOption;
|
||||
};
|
||||
|
||||
# POSIX.1-2013, 3.431 User Name
|
||||
username = mkOptionType {
|
||||
name = "POSIX username";
|
||||
check = filename.check;
|
||||
merge = mergeOneOption;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user