Skip to content

Add share-link update command#252

Merged
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-update
Jun 21, 2026
Merged

Add share-link update command#252
AndreyVMarkelov merged 1 commit into
masterfrom
share-link-update

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add dbxcli share link update <url> to modify shared link settings
  • Flags: --expires <RFC3339>, --remove-expiration, --allow-download
  • Validates mutual exclusion of --expires and --remove-expiration
  • Requires at least one setting flag (prevents no-op API calls)
  • Silent on success; verbose mode prints status to stderr
  • Extends sharedLinkClient interface with ModifySharedLinkSettings

Test plan

  • Requires exactly one URL argument (nil and multi-arg rejected)
  • Rejects empty URL with clear error
  • Requires at least one setting flag
  • Rejects invalid RFC3339 timestamp for --expires
  • Rejects --expires and --remove-expiration together
  • Sets expiration correctly on API arg
  • Removes expiration correctly (RemoveExpiration = true)
  • Sets allow-download correctly
  • Verbose success writes status to stderr
  • Success produces no stdout output
  • API errors returned unchanged
  • Command registered under share link
  • golangci-lint clean, all tests pass

🤖 Generated with Claude Code

Implement `dbxcli share link update <url>` to modify shared link settings.
Supports --expires (RFC3339), --remove-expiration, and --allow-download.
Validates mutual exclusion of --expires and --remove-expiration, and
requires at least one setting flag.

Extends the sharedLinkClient interface with ModifySharedLinkSettings.
@AndreyVMarkelov AndreyVMarkelov merged commit 51f8b7f into master Jun 21, 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