Skip to content

Add --output=json support to revs command#272

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
revs-json-output
Jun 23, 2026
Merged

Add --output=json support to revs command#272
AndreyVMarkelov merged 1 commit into
masterfrom
revs-json-output

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Migrate revs to emit file revisions as structured JSON with {"input": {...}, "entries": [...]}
  • revsInput includes file path and display options (long, time, time_format)
  • Each entry contains full file metadata (rev, size, timestamps)
  • Text mode behavior unchanged

Test plan

  • go vet ./... clean
  • golangci-lint run ./... clean
  • All tests pass (go test ./... -count=1)
  • Manual: dbxcli revs --output=json /file.txt emits JSON with revision entries
  • Manual: dbxcli revs -l /file.txt text output unchanged

Emit file revisions as structured JSON with input path and entries
array containing revision metadata.
@AndreyVMarkelov AndreyVMarkelov merged commit 7010305 into master Jun 23, 2026
7 checks passed
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