anwesen/src
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
..
app.rs ANW-45 Serve: exit nonzero when the supervisor tree fails to start 2026-07-29 22:22:24 +03:00
cli.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
doctor.rs ANW-41 Docs: fix four broken rustdoc intra-doc links 2026-07-24 23:41:37 +03:00
health.rs ANW-8 /health endpoint + ANW-15 local follow-ups 2026-05-14 16:31:13 +02:00
http.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
lib.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
main.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
oneshot.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
query.rs ANW-43 CLI: add a query subcommand writing the /query JSON offline 2026-07-31 15:59:18 +03:00
store.rs ANW-40 Watcher: emit both deletes for a vanished .md path 2026-07-24 21:32:51 +03:00
telemetry.rs ANW-42 Telemetry: take export config from OTEL_ environment variables only 2026-07-27 00:06:36 +03:00
vault.rs ANW-36 Watcher: drop index entries when note files are deleted 2026-07-24 21:19:13 +03:00
watcher.rs ANW-41 Docs: fix four broken rustdoc intra-doc links 2026-07-24 23:41:37 +03:00