Skip to content

Daniil/json machine output#150

Draft
daniilrrr wants to merge 3 commits into
mainfrom
daniil/json-machine-output
Draft

Daniil/json machine output#150
daniilrrr wants to merge 3 commits into
mainfrom
daniil/json-machine-output

Conversation

@daniilrrr

@daniilrrr daniilrrr commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

WIP

daniilrrr and others added 3 commits May 29, 2026 16:27
- Add global --format flag and src/output.rs (OutputFormat, Emitter, Report trait) with a JSON error envelope.
- Thread &Emitter through all command run() signatures.
- Text output unchanged; per-command JSON lands in later steps.
- Add Report structs for both commands and route output through Emitter.
- re-encrypt-share's file-write confirmation moves to stdout (text) / a {reEncryptedSharePath} envelope (json); the safety warning stays on stderr.
- Share artifact and metadata file shapes unchanged. Tests folded in: report unit tests + JSON round-trip integration coverage.
These new files were omitted from commits 2243290 and 709c6b1 (only
modified tracked files were staged), leaving the branch unable to
compile without output.rs. Add them so the branch tip builds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant