Implement combinator aliases
To make it easier to rename combinators without breaking anyone's configuration, this change allows combinators to specify a list of `aliases` that are also exported from `jail.combinators`. The aliases are also documented on the documentation website.
This commit is contained in:
parent
49aa817e4f
commit
7acd363b6d
2 changed files with 40 additions and 73 deletions
|
|
@ -38,6 +38,13 @@
|
|||
|
||||
**${name} :: ${combinatorObj.sig}**
|
||||
|
||||
${
|
||||
if combinatorObj ? aliases then
|
||||
"Aliases: ${lib.concatMapStringsSep ", " (alias: "`${alias}`") combinatorObj.aliases}"
|
||||
else
|
||||
""
|
||||
}
|
||||
|
||||
${combinatorObj.doc}
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue