Skip to content

Add shell completion - #222

Merged
thelovekesh merged 16 commits into
mainfrom
add/shell-completion
May 21, 2026
Merged

Add shell completion#222
thelovekesh merged 16 commits into
mainfrom
add/shell-completion

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator
  • Add shell completion for all commands
  • Update install wpm scripts to init shell completion

@thelovekesh thelovekesh added enhancement New feature or request command any changes to the wpm cli command labels May 21, 2026
@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements comprehensive shell completion support for the WPM CLI across Bash, Zsh, Fish, and PowerShell. It introduces a new completion package providing dynamic suggestions for package names, types, and licenses, and updates the installation scripts to automatically configure these completions. Feedback highlights the need to deduplicate package names in the completion logic, a bug in the shell installer's path replacement logic for home-relative directories, and a suggestion to use source instead of exec for refreshing the Zsh environment to avoid session disruption.

Comment thread cli/command/completion/functions.go
Comment thread scripts/install/install.sh
Comment thread scripts/install/install.sh
@thelovekesh
thelovekesh merged commit 71a6fe3 into main May 21, 2026
17 checks passed
@thelovekesh
thelovekesh deleted the add/shell-completion branch May 21, 2026 18:37
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 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant