llamacppctl/tests
dschlueter 3e3dd1c150 fix(cli): stop --print-effective-config from starting a container
argparse requires exactly one action, so the documented diagnostic form
`--print-effective-config --config … --start` never took the early-return
branch in main.run(): it printed the resolved config and then executed a
real do_start(), silently replacing a running container with the [default]
model. README, installation guide and manual all recommended that form.

Make it an action in the mutually exclusive group. It can no longer be
combined with --start/--check/--stop/--change/--chat (argparse error,
exit 2), and it skips the docker_available() check, so it now really is
the offline config check the docs promise. --dry-run remains a modifier
and still requires a reachable daemon.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 16:25:07 +02:00
..
conftest.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_actions.py feat(docker): support a multimodal projector via --mmproj 2026-07-10 16:24:47 +02:00
test_build_archive.py test: cover build_archive and add it to the ruff scope 2026-07-07 11:20:57 +02:00
test_cli.py fix(cli): stop --print-effective-config from starting a container 2026-07-10 16:25:07 +02:00
test_config.py feat(docker): support a multimodal projector via --mmproj 2026-07-10 16:24:47 +02:00
test_docker_ops.py feat(docker): support a multimodal projector via --mmproj 2026-07-10 16:24:47 +02:00
test_http_ops.py chore(ci): add ruff and mypy, wire them into CI 2026-07-07 10:29:07 +02:00
test_lock_ops.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_main.py fix(cli): stop --print-effective-config from starting a container 2026-07-10 16:25:07 +02:00
test_prompt_files.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_prompt_sources.py Initial commit: llamacppctl – llama.cpp Docker server control CLI 2026-07-06 16:36:27 +02:00
test_prompt_urls.py test: close coverage gaps + opt-in integration smoke 2026-07-06 17:08:10 +02:00