Add share-link list, revoke, and info commands#253
Merged
Conversation
Move share-link from `share link` subcommand to top-level `share-link` command. Add `share-link list [path]` with optional path scoping using DirectOnly=true. Deprecate old `share list link` (still functional). Add verbose status output helpers (commandVerbose, commandVerboseStatus) for share-link create/list. Refactor link rendering to use io.Writer instead of global stdout.
f49ed73 to
429afc7
Compare
neon-ninja
pushed a commit
to UoA-eResearch/dbxcli
that referenced
this pull request
Jun 23, 2026
Add share-link list, revoke, and info commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
share-link(create, list, revoke, info, update)share-link list [path]with pagination, writer-based rendering, and optional path filtershare-link revoke <url>to revoke a shared linkshare-link info <url>to display shared link metadata (type, name, URL, path, ID, expiration, permissions, file-specific fields)commandVerboseandcommandVerboseStatushelpers for verbose-only stderr outputshare list linkas deprecated compatibility commandReplaces #251 which was merged into a deleted base branch and never reached master.
Test plan
share-link listpaginates and renders all linksshare-link list /pathfilters to direct links for a pathshare-link revokerequires exactly one URL argumentshare-link revokecalls RevokeSharedLink APIshare-link inforequires exactly one URL argumentshare-link inforenders file link with all fieldsshare-link inforenders folder link