feat: add shell auto-completion support#146
Conversation
Added `--bash` and `--zsh` flags to generate completion scripts for Bash and Zsh, and updated documentation with installation instructions.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Code Review
This pull request introduces shell auto-completion support for Bash and Zsh by adding --bash and --zsh flags, along with updating the README documentation. The review feedback suggests safely retrieving flag values using cmd.Flags().GetBool(...) to prevent potential nil pointer panics, handling errors from the completion generators, cleaning up unused flag pointer variables, and correcting the markdown syntax highlighting for the Zsh instructions in the README.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Coverage Report for CI Build 28684480732Coverage decreased (-0.3%) to 29.424%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Suppress potential errors during the generation of shell completion scripts, as writing to `os.Stdout` is expected and handled by the caller.
…t/bash-completion * 'main' of github.com:rm-hull/git-commit-summary: feat: add support for git prepare-commit-msg hook (#142)
Added
--bashand--zshflags to generate completion scripts for Bash and Zsh, and updated documentation with installation instructions.