anwesen/tests
Andreas Brenner 6e07bff08a ANW-43 CLI: add a query subcommand writing the /query JSON offline
The README claims the query engine is available offline, but only the
merge half was: no subcommand produced the path / frontmatter /
last_modified / etag / size projection that GET /query returns.

`anwesen query` takes the same --vault and --query flags as merge and
writes that document to stdout, compact, one line. src/merge.rs becomes
src/oneshot.rs and holds both: one parse-and-load path, so the two
subcommands cannot drift in grammar or in how strictly they read a
vault. cli.rs shares one VaultQueryArgs between them for the same
reason. rfc3339_z moves from http.rs to query.rs, next to the projection
whose timestamp dialect it is.

Assumed a trailing newline on stdout is wanted here even though merge
writes none: the JSON body is one line for jq and shell pipelines, and
the newline terminates it rather than joining the document. Flag if
wrong.

The hurl harness now compares `anwesen query` against GET /query on the
fixture vault for four queries before running the suite, so a drift
between the two surfaces fails CI.
2026-07-31 15:59:18 +03:00
..
fixtures/vault ANW-20 hurl HTTP contract-test harness 2026-05-14 19:11:00 +02:00
hurl ANW-26 HTTP /query markdown-merge mode 2026-06-14 18:35:20 +03:00
run-hurl.sh ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
serve_start_failure.rs ANW-45 Serve: exit nonzero when the supervisor tree fails to start 2026-07-29 22:22:24 +03:00