| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
Importers and placeholders (env:, file:, cmd:, ${…}, +json, $$, the
tables) move from config::import to the crate config, crates/config, as
its module import, as they were, public: the crate is for what a
program's configuration is made of, from its files and its arguments,
and other programs make theirs with it.
The repository is a workspace of the node and that crate, both default
members, so that cargo quick, cargo sim and clippy take in both.
|