add description to zsh completion#656
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends resticprofile complete to optionally include tab-separated descriptions for zsh (via a new zsh:v2 protocol version) and updates the bundled zsh completion script to display those descriptions in completion listings.
Changes:
- Add
zsh:v2support to include descriptions in completion output (gated by requester version). - Update the zsh completion script to request
zsh:v2and attempt to show descriptions. - Extend completion tests to cover
zsh:v2returning descriptions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| contrib/completion/zsh-completion.zsh | Adds a helper to render tab-separated descriptions and switches the protocol to zsh:v2. |
| commands.go | Enables descriptions for zsh:v2 (and keeps zsh:v1 behavior unchanged). |
| commands_test.go | Adds a test case asserting zsh:v2 includes descriptions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #656 +/- ##
=======================================
Coverage 80.96% 80.96%
=======================================
Files 162 162
Lines 12122 12122
=======================================
Hits 9814 9814
Misses 1810 1810
Partials 498 498
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
No description provided.