-
Notifications
You must be signed in to change notification settings - Fork 2
Automatically install completions #32
Copy link
Copy link
Closed
Labels
CLICLI commands and featuresCLI commands and featuresdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthomebrewIssues related to brew packagingIssues related to brew packaging
Milestone
Metadata
Metadata
Assignees
Labels
CLICLI commands and featuresCLI commands and featuresdocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or requesthomebrewIssues related to brew packagingIssues related to brew packaging
Situation
Other homebrew packages automatically install shell completions. We don't.
Objective
Automatically install zsh, bash, and fish completions when users install via
brew install odoo-work-cli.Design
Cobra already provides a built-in
completionsubcommand — no Go code changes needed. GoReleaser'shomebrew_caskshas a nativecompletionsfield.Implementation
1. Add a completion generation script
scripts/completions.sh:2. Update
.goreleaser.ymlbefore.hookscompletionstohomebrew_casks3. Document manual installation in README
For users not using homebrew: