diff options
| author | tv <tv@krebsco.de> | 2026-12-01 04:51:21 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 05:03:57 +0000 |
| commit | 45b067620bce84cb1fae440efd7e4de78c6af63e (patch) | |
| tree | 8b7821269d667a7edb1c23324e5d5d116ae4c9f9 /CHANGELOG.md | |
| parent | 79396943ec9eee8ffd64669baaa3484fcad33feb (diff) | |
A placeholder var:NAME is replaced by what the program gives under that
name (Variables, Importer::fetch_with), under the rules of env:, file:
and cmd:: nested in a name, a path, an argument and a shell command, as
data, never as code; var+raw: where bytes go. One the program doesn't
give is an error naming it and those given. So an importer that differs
from one use to the next by a value is written once, with a variable.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ff27c0c..2000c11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,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)). +* The `config` crate takes variables of the program that uses it: `${var:NAME}`, or + `$(var:NAME)`, is replaced by the one of that name (`Variables`, + `Importer::fetch_with`), under the rules of every placeholder; an unknown one is an + error naming it. continuum gives none: a shell command in an importer that used a + variable of its own named `var` by `${var:…}` writes `$${var:…}` + ([`crates/config/src/import.rs`](crates/config/src/import.rs)). + * 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 |
