Step 22: Shell completion docs for bash, zsh, fish.
Cobra provides built-in sgard completion subcommand — no additional code needed. README updated with installation instructions for each shell. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
15
README.md
15
README.md
@@ -41,6 +41,21 @@ in your packages.
|
||||
Binaries are also available on the
|
||||
[releases page](https://github.com/kisom/sgard/releases).
|
||||
|
||||
### Shell completion
|
||||
|
||||
```sh
|
||||
# Bash (add to ~/.bashrc)
|
||||
source <(sgard completion bash)
|
||||
|
||||
# Zsh (add to ~/.zshrc)
|
||||
source <(sgard completion zsh)
|
||||
|
||||
# Fish
|
||||
sgard completion fish | source
|
||||
# To load on startup:
|
||||
sgard completion fish > ~/.config/fish/completions/sgard.fish
|
||||
```
|
||||
|
||||
## Quick start
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user