From d56436c3e5ee7b5659e1c2171c5c7af2d3c4eccb Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 00:29:50 +0000 Subject: config: placeholders nest, what one gives going in as data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A name, a path, a command and each argument of an importer may hold placeholders of their own. There only ${env:, ${file: and ${cmd: begin one, $${ is a ${, and every other $ stays: a command's are its shell's. What a placeholder gives is never run. Into a name, a path and an argument it goes as text, an argument staying one. A shell command gets it as a positional parameter, the placeholder becoming a reference to it, "${1}", or ${1} inside double quotes: no part of the script, whatever it holds. import::Shell tells where in a script a place is, as far as that reference needs; where it can't be written as one word (single quotes, backquotes, $((…)), the shell's ${…}, after a backslash or a here-document), the command is refused. What it gets wrong can refuse a reference or have the shell split it, never run it. An importer has its directory itself (Importer::dir), a file's path joined with it when read, so that a path may hold placeholders. --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a863d6..730151f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ## Unreleased +* 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. + In a command or an argument that held `${env:`, `${file:` or `${cmd:` for the shell + or the program itself, write `$${` ([`docs/configuration.md`](docs/configuration.md), + [Importing values](docs/configuration.md#importing-values); + [`crates/config/src/import.rs`](crates/config/src/import.rs)). + * A party's next write, key set or node list has its last in its history where the store holds more heads than an event names: `continuum-party` asks for the heads for its party (`GET /events?party=NAME`). On the earliest heads alone, of two of one party the lower -- cgit v1.3.1