aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-29 00:29:50 +0000
committertv <tv@krebsco.de>2026-11-29 00:29:50 +0000
commitd56436c3e5ee7b5659e1c2171c5c7af2d3c4eccb (patch)
treec4da35c7acdf8b250ada8ec9adec65274e1c4016 /CHANGELOG.md
parent479246f98be360b5943458bd58d07e6d46f81fd0 (diff)
config: placeholders nest, what one gives going in as data
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.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
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