Skip to content

Add dist-tag command#256

Merged
thelovekesh merged 7 commits into
mainfrom
add/dist-tags
Jun 15, 2026
Merged

Add dist-tag command#256
thelovekesh merged 7 commits into
mainfrom
add/dist-tags

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator

Add dist-tag command with add sub-command to set dist tags.

@thelovekesh thelovekesh added the command any changes to the wpm cli command label Jun 15, 2026
@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 AddDistTag to PUT dist-tag updates to the registry API.
  • Updates docs and reuses a unified dist-tag completion function for both publish --tag and dist-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 PublishTagsDistTags 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.

Comment thread cli/command/disttag/add.go
Comment thread cli/command/disttag/add.go
Comment thread pkg/pm/registry/client.go Outdated
@thelovekesh thelovekesh merged commit 6633251 into main Jun 15, 2026
17 checks passed
@thelovekesh thelovekesh deleted the add/dist-tags branch June 15, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command any changes to the wpm cli command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants