-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Completion descriptions are used for zsh, fish and now bash thanks to #4028.
However, they are not used for Powershell although they are available from Cobra.
Steps to reproduce the behavior
- git checkout trunk; make
- pwsh
- bin/gh completion -s powershell | Out-String | Invoke-Expression
- bin/gh <TAB>
PS /Users/marckhouzam/git/cli> bin/gh <TAB>
actions api browse config help pr repo secret workflow
alias auth completion gist issue release run ssh-key co
There are no descriptions for the completions, unlike the other shells.
Expected vs actual behavior
Cobra provides support for descriptions of completions for Powershell which would yield, for example:
PS /Users/marckhouzam/git/cli> bin/gh <TAB>
actions (Learn about working with GitHub actions) issue (Manage issues)
alias (Create command shortcuts) pr (Manage pull requests)
api (Make an authenticated GitHub API request) release (Manage GitHub releases)
auth (Login, logout, and refresh your authentication) repo (Create, clone, fork, and view repositories)
browse (Open the repository in the browser) run (View details about workflow runs)
completion (Generate shell completion scripts) secret (Manage GitHub secrets)
config (Manage configuration for gh) ssh-key (Manage SSH keys)
gist (Manage gists) workflow (View details about GitHub Actions workflows)
help (Help about any command) co
I will post a PR.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working