From 9f64a8d003bd301a6499bf7a6f60e6cf0b533162 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 17:50:30 +0000 Subject: config: a named importer used with several variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a file, { NAME = { host = "…", key = "…" } } uses the importer NAME with those variables; { NAME = "REST" } is short for the one variable `name`, which the argument and the placeholder give. A variable the importer is given and never asks for is an error naming it and those it takes, as one it asks for and isn't given is; one that takes none is used with nothing after its name. Such a use is shown as NAME(host = …, key = …), as written, and Source::Named holds the variables, for a program that reports by them. --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fe9e73..76968c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,7 +39,8 @@ it from the release before ([`docs/operations.md`](docs/operations.md), * A configuration names importers of its own: `[meta.importer]` in a file, or `--meta-importer-NAME IMPORTER`, makes `NAME:REST`, `{ NAME = "REST" }` and `$(NAME:REST)` that importer, with `REST` as its variable `name`: a secret store's - command is written once, `pass = { command = ["pass", "show", "$(var:name)"] }`. A + command is written once, `pass = { command = ["pass", "show", "$(var:name)"] }`. In a + file, one may be used with several variables, `{ NAME = { host = "…", key = "…" } }`. A top-level `meta` in a configuration file is this table's now ([`docs/configuration.md`](docs/configuration.md), [Naming importers](docs/configuration.md#naming-importers); -- cgit v1.3.1