aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-29 00:50:42 +0000
committertv <tv@krebsco.de>2026-11-29 01:00:16 +0000
commit7a8e8ecd650ddb253c08445f6f60686e1c8b8bf5 (patch)
tree4309216f7e96201c3ed71fc49aa594ba8ae62452 /docs
parentd56436c3e5ee7b5659e1c2171c5c7af2d3c4eccb (diff)
config: +raw imports the bytes as they are
file+raw:, cmd+raw: and env+raw:, and format = "raw" in a table, give what is there byte for byte (Imported::Raw): no line break removed at its end, and what is no text taken, as a key or a certificate needs. Text and JSON still must be UTF-8, and say +raw where they aren't. A placeholder gives text; in a +raw importer one may be +raw too, and its bytes go in as they are, into a name, a path, an argument or a shell's positional parameter. Into text none does: not into a text or JSON importer, nor into text with placeholders. continuum takes a +raw value as one text, read as nothing else; one that is no UTF-8 it refuses, an option being text.
Diffstat (limited to 'docs')
-rw-r--r--docs/configuration.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index 00f2386..27b73be 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -182,7 +182,9 @@ The content is text with trailing line breaks removed, read like a command-line
value: numbers for numeric options, `true`/`false` for switches, comma- or
line-separated items for lists. With `format = "json"` in a file, or `+json` on the
command line (`env+json:SEEDS`, `file+json:PATH`, `cmd+json:COMMAND`), it is parsed
-as JSON instead (e.g. a list as `["a", "b"]`).
+as JSON instead (e.g. a list as `["a", "b"]`). With `format = "raw"`, or `+raw`
+(`file+raw:PATH`, …), it is taken as it is: one text, the line breaks at its end kept,
+read as nothing else.
In files, relative paths are relative to the file, and commands run in its directory.
@@ -228,6 +230,10 @@ as something to run:
after a here-document. A command that evaluates what it is given (`eval`, `sh -c`)
still does.
+A placeholder gives text. In an importer that is `+raw` itself, one may be `+raw` too
+(`cmd+raw:sign ${file+raw:key}`), and then goes in as it is, line breaks at its end and
+all; into text, none does.
+
A command that prints several lines (above: several addresses) doesn't give one item
per line: as a list element the text is one item, line breaks and all, and as a whole
list value it is split at commas and line breaks, the fixed text going with the first