libucl
libucl copied to clipboard
Feature Request: overrides
A canonical way to have an included config file override the configuration of the existing config file
example: the pkg(8) tool in FreeBSD gets its configuration from all of the files in /etc/pkg and /usr/local/etc/pkg
/etc/pkg/FreeBSD.conf: FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes }
/usr/local/etc/pkg/repos/FreeBSD.conf: FreeBSD: { enabled: no }
Results in a final config with the FreeBSD repo disabled.
This is a relatively simple example, and seems to already work in FreeBSD, but codifying this as a feature would be useful.