cmds.secrets.CmdCompileTemplates: Support -k / --keep-going #160

Merged
Jan Lindemann merged 1 commit from jan/feature/20261029-cmds-secrets-cmdcompiletemplates-support-k-keep-going into master 2026-10-29 11:22:16 +01:00 AGit

2026-10-29

cmds.secrets.CmdCompileTemplates: Support -k / --keep-going
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m8s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m21s
CI / Packaging test (pull_request) Successful in 0s
jw-pkg secrets compile-templates iterates over all selected templates and
compiles secrets from it - unless it encounters one that can't be compiled
for whatever reason, in which case the iteration errors out without
compiling the remaining secrets.

Add a -k / --keep-going option that makes the iteration not abort over
failed compilations but continue through the remaining templates, then
report an error status at the end.

The integration test gains a good sibling of the failing fixture template:
a fail-fast run must not reach it, and a keep-going run must compile it and
still fail the command.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.4.0
2026-10-29 11:10:34 +01:00