From 2be9ca2b75d099a9ca04078f2182acda074ed270 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 2 Dec 2026 16:24:19 +0000 Subject: config: a configuration names importers of its own [meta.importer] in a file, or --meta-importer-NAME IMPORTER, names an importer: NAME:REST, { NAME = "REST" } and a placeholder of that name are then that importer, with REST as its variable `name`. So what would be built in for one tool, pass:NAME, is written by who uses it, once: pass = { command = ["pass", "show", "$(var:name)"] }. A name counts in every file and argument, wherever it is given; of two of one name, the later source's. What follows the name goes in as every variable does, as data. One named may be defined through others, not through itself. `meta` at the top of a configuration file is what the configuration says about itself. The argument is spelled as every option's, the table's keys joined with `-`; as its name is the configuration's, it is taken off the command line before the command reads it. --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 81db46c..3fe9e73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,15 @@ 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 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 + 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); + [`crates/config/src/import.rs`](crates/config/src/import.rs)). + * The Swagger UI (`/swagger-ui`) is a feature, `swagger-ui`, no longer built into every node: a build that is to serve it names the feature. `/openapi.yaml` is served as before ([`docs/development.md`](docs/development.md)). -- cgit v1.3.1