Skip to content

Add version JSON output and share list folder structured output#285

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
json-version-share-folder
Jun 25, 2026
Merged

Add version JSON output and share list folder structured output#285
AndreyVMarkelov merged 1 commit into
masterfrom
json-version-share-folder

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move version command from main.go into cmd/version.go with JSON output support and testability via dropboxVersionFunc variable
  • Add structured JSON output to the legacy share list folder command with full pagination, sharedFolderClient interface for testability, and complete shared folder metadata mapping
  • Update README with examples and schema documentation for both commands

Test plan

  • go test ./cmd/... passes — new tests for version text/JSON output, share list folder text/JSON/pagination/error paths
  • golangci-lint run ./... passes
  • dbxcli version --output=json outputs {input, results, warnings} with version info
  • dbxcli share list folder --output=json outputs operation results with shared folder metadata

Move the version command from main.go into cmd/version.go with
JSON support and testability via dropboxVersionFunc. Add structured
JSON output to the legacy share list folder command with pagination,
sharedFolderClient interface, and full metadata mapping.
@AndreyVMarkelov AndreyVMarkelov merged commit 3cdff04 into master Jun 25, 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