Skip to content

Add --path flag to share-link revoke#260

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-revoke-path
Jun 22, 2026
Merged

Add --path flag to share-link revoke#260
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-revoke-path

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add --path flag to share-link revoke to revoke all direct shared links for a Dropbox path
  • Lists direct links via ListSharedLinks(Path, DirectOnly=true) with pagination, then revokes each
  • --path and URL argument are mutually exclusive
  • Returns clear error if no links found for the path
  • Rejects root path

Depends on #259.

Test plan

  • --path cannot be used with a URL argument
  • Empty --path rejected
  • Root path rejected
  • Lists direct links and revokes all found
  • Follows pagination
  • Returns error when no links found
  • Returns list API errors
  • Returns revoke API errors with failing URL context
  • Verbose writes status with count to stderr
  • Flag registered on command
  • golangci-lint clean, all tests pass

@AndreyVMarkelov AndreyVMarkelov merged commit 9ad7667 into master Jun 22, 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