Skip to content

Skip auth for help, version, and completion commands#242

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
skip-auth-for-local-commands
Jun 17, 2026
Merged

Skip auth for help, version, and completion commands#242
AndreyVMarkelov merged 1 commit into
masterfrom
skip-auth-for-local-commands

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Skip Dropbox credential lookup for commands that don't need network access: --help, version, completion, and internal cobra completion helpers
  • Fixes: dbxcli --help and dbxcli completion bash previously failed without saved credentials
  • Required for Homebrew formula submission (test runs dbxcli --help in a sandboxed environment)

Test plan

  • dbxcli --help works without saved credentials
  • dbxcli version works without saved credentials
  • dbxcli completion bash works without saved credentials
  • dbxcli ls / still requires auth (fails without credentials)
  • All tests pass (go test ./...)

Commands like --help, version, and shell completion generation do not
require Dropbox credentials. Previously they would fail if no saved
credentials existed, breaking Homebrew's test and shell completion.
@AndreyVMarkelov AndreyVMarkelov merged commit b56260a 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