Skip to content

Bundle team app keys and fix ls error handling#241

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
bundled-team-app-keys
Jun 17, 2026
Merged

Bundle team app keys and fix ls error handling#241
AndreyVMarkelov merged 1 commit into
masterfrom
bundled-team-app-keys

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bundle default app keys for team-access and team-manage logins so users no longer need to provide their own app key for team operations
  • Fix incorrect error type assertion in ls command: was using ListRevisionsAPIError for list-folder errors, now correctly uses ListFolderAPIError with errors.As
  • Extract finishListOutput helper, unexport SetPathDisplayAsDeleted, use pointer receivers consistently on storedCredential

Test plan

  • dbxcli login team-access uses bundled key without prompting
  • dbxcli login team-manage uses bundled key without prompting
  • dbxcli ls /path/to/file works correctly (single file listing)
  • dbxcli ls --include-deleted /path handles not_folder and not_file errors
  • All tests pass (go test ./...)

- Use official bundled app keys for team-access and team-manage logins, so app-key override is optional when defaults are available
- Simplify app-key prompting to only ask when the effective key is empty
- Fix ls error handling to use errors.As with correct Dropbox API error types: ListFolderAPIError for list-folder and ListRevisionsAPIError for list-revisions
- Ensure ls short output ends with a newline for partial rows
- Unexport setPathDisplayAsDeleted because it is package-local
- Use pointer receivers on storedCredential methods consistently
- Silence errcheck warnings on fmt.Fprint calls to tabwriter
@AndreyVMarkelov AndreyVMarkelov merged commit d35b0c1 into master Jun 17, 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