Skip to content

Emit one JSON record per line - #1925

Open
magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/1572-json-lines
Open

magrathean-uk wants to merge 1 commit into
rustic-rs:mainfrom
magrathean-uk:fix/1572-json-lines

Conversation

@magrathean-uk

@magrathean-uk magrathean-uk commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Some commands pretty-print JSON, which makes line-oriented processing difficult. Emit each JSON record on one line across backup, snapshots, forget, merge, and repoinfo output while retaining the same fields.

Fixes #1572.

Validation: the combined CLI suite passed 70 tests, including backup_json_writes_one_snapshot_per_line; this patch applied to clean main, cargo fmt --check and git diff --check passed. Standalone cargo test --locked --test json_lines passed (1/1) on this branch.

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.

Single line JSON ouput.

1 participant