feat(cli): command-line client for administration

- Add parsimony list, member, held, archive and queue subcommands over the REST API
- Read the token only from PARSIMONY_API_TOKEN; take the URL from --url or PARSIMONY_URL
- Print tables by default and JSON with --json
- Add member import from a file or stdin, reporting failing lines and exiting non-zero
- Require --yes for destructive commands
- Add parsimony serve; keep the old -config invocation working
- Run the CLI inside the container in the end-to-end test
- Test every command against the real API handler; mutation checks over the CLI
This commit is contained in:
tgiachi 2026-11-09 16:57:25 +01:00
commit 2d8b0ccce6

View file

@ -24,4 +24,4 @@ VOLUME /data
EXPOSE 2424 8080 8081
USER 65532:65532
# Mount the config read-only at /etc/parsimony/parsimony.yaml; keep "db: /data/parsimony.db" in it.
ENTRYPOINT ["/parsimony", "-config", "/etc/parsimony/parsimony.yaml"]
ENTRYPOINT ["/parsimony", "serve", "-config", "/etc/parsimony/parsimony.yaml"]