feat: replace TOML input with YAML

This commit is contained in:
Mikkeli Matlock
2026-08-26 15:54:41 +09:00
parent 68229d9d1f
commit 81de21e039
4 changed files with 18 additions and 33 deletions
+3 -3
View File
@@ -8,12 +8,12 @@ Generates SVG QR codes from any text input.
uv run svgqr "Text to encode"
uv run svgqr -t "Text to encode" -o path/to/code.svg
uv run svgqr -i values.txt
uv run svgqr --toml values.toml
uv run svgqr --yaml values.yaml
```
Text can be passed positionally or with `-t`. Without `-o`, the program uses a
safe, truncated form of the text as the SVG filename. Batch mode writes SVGs to
`output/` and ignores `-o`.
`--toml` accepts a flat mapping of output name to text. Standard TOML uses
`name = "text"`; the documented `name: text` form is also accepted.
`--yaml` accepts a flat mapping of output name to text, such as
`name: text`.