From 34434f7fd5a6bab1884a63c96679f48045f4bffd Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 21:06:06 +0000 Subject: config: placeholders in parentheses, for where braces are another language's A placeholder may be written $(env:NAME), $(file:PATH) or $(cmd:COMMAND), ending at the parenthesis matching its own: the same as with braces, nesting and all. A configuration written in Nix, or passed through a systemd unit, needs no escapes so. --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f363c4..d5c6ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,13 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ([`docs/configuration.md`](docs/configuration.md), [Importing values](docs/configuration.md#importing-values)). +* A placeholder may be written with parentheses, `$(env:NAME)`, `$(file:PATH)`, + `$(cmd:COMMAND)`, for a configuration written in a language with a `${…}` of its own + (Nix). A shell command in an importer that ran a program named `env:…`, `file:…` or + `cmd:…` by `$(…)` writes `$$(` + ([`docs/configuration.md`](docs/configuration.md), + [Importing values](docs/configuration.md#importing-values)). + * Placeholders nest: `${cmd:secrets ${env:HOSTNAME} show x}`, and in a name, a path, a command and each argument of an importer. What a placeholder gives is never run: an argument stays one argument, and a shell command gets it as a positional parameter. -- cgit v1.3.1