Add dist-tag command#256
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new wpm dist-tag command group (with an add subcommand) to let users set distribution tags for already-published package versions, and wires it into the CLI, registry client, shell completions, and reference docs.
Changes:
- Introduces
wpm dist-tag add PACKAGE@VERSION [TAG]and registers it in the root command set. - Extends the registry client with
AddDistTagto PUT dist-tag updates to the registry API. - Updates docs and reuses a unified dist-tag completion function for both
publish --taganddist-tag add.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/pm/registry/client.go | Adds AddDistTag API call and request payload type. |
| docs/reference/cli/wpm.md | Adds dist-tag to the CLI reference index. |
| docs/reference/cli/dist-tag.md | New reference page for the dist-tag command group. |
| docs/reference/cli/dist-tag_add.md | New reference page for dist-tag add usage and examples. |
| cli/command/publish/publish.go | Switches publish tag completion to the renamed DistTags() helper. |
| cli/command/disttag/cmd.go | New dist-tag command group with alias dist-tags. |
| cli/command/disttag/add.go | Implements dist-tag add, argument parsing, auth validation, and output. |
| cli/command/completion/functions.go | Renames PublishTags → DistTags and updates its doc comment. |
| cli/command/commands/commands.go | Registers the new dist-tag command with the CLI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3674c12 to
9bab4ae
Compare
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.
Add dist-tag command with add sub-command to set dist tags.