jw-pkg/test
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 7f9f65153f
cmds.projects.CmdCreateFile: Add --field-keys option
The --field option accepts arbitrary KEY=VALUE pairs, inserting them into
the rendered template output, but there is no way to declare which keys
a template actually supports. Passing a key the template does not use goes
unnoticed, and a template cannot offer optional fields that drop out of
the output when not supplied.

Add a --field-keys option, a comma-separated list of the keys a template
accepts. Passing a key via --field that is not in that list is an error,
and keys from the list that are not passed are added with an empty value,
so the respective field renders as empty and effectively drops out of the
output.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-09-13 22:31:25 +02:00
..
integration cmds.projects.CmdCreateFile: Add --field-keys option 2026-09-13 22:31:25 +02:00
unit cmds.projects.lib.templates: Don't replace escaped markers 2026-09-13 21:08:53 +02:00
__init__.py test: Fix test.py duplicate module name error 2026-07-04 07:35:17 +02:00
Makefile jw.pkg.lib.Uri: Add unit test 2026-06-25 19:08:02 +02:00