Commit Graph
2 Commits
Author SHA1 Message Date
sneak b72b6ded58 Write only the document to stdout from snapshot remove --json (closes #251)
check / check (push) Successful in 18m5s
When the destination store cannot be reached, `snapshot remove` still
removes the snapshot from the local index and warns. The warning went
through the UI, which writes to stdout, so under `--json` it landed
ahead of the document and `| jq` failed on a command that exited 0.
Under `--json` the UI warning is now skipped; the logger's warning
already goes to stderr.

The new test runs the command through `Entry` against a missing
destination directory and decodes stdout as exactly one JSON document.

Judgement call: under `--json` the stderr warning is the log record,
which names the error but not the `vaultik prune` follow-up.

Model: opus-5-5
2026-10-06 23:24:14 +00:00
clawbot 85d4ef118d Keep command output to the README's stdout and stderr rules (closes #224)
check / check (push) Successful in 16m49s
The startup banner moves from stdout to stderr, so a `completion`
script, a `config get` value and the hidden `__complete` command print
only their own output. `--quiet`, `--cron` and `--json` still suppress
it.

A failing `remote info`, `prune` or `snapshot remove` under `--json`
now reports its error on stderr. Their reporters returned early under
`--json`, so the failure reached neither stream.

`snapshot verify --quiet` writes no report. A failure is still
returned and printed on stderr, with the same exit status.

Judgement call: the banner's stream, posted on the issue for the owner.

Model: opus-5-5
2026-10-07 01:12:15 +02:00