Skip to main content

git_worktree_manager/cli/
completions.rs

1// Shell completion generation using clap_complete.
2//
3// Supports bash, zsh, fish, powershell, and elvish.
4// Static completions are generated via `gw --generate-completion <shell>`.
5//
6// Dynamic completions (branch names, preset names, terminal options)
7// are provided through the shell function's tab completion hooks.
8//
9// Usage:
10//   # Generate and install completions
11//   gw --generate-completion bash > ~/.local/share/bash-completion/completions/gw
12//   gw --generate-completion zsh > ~/.zfunc/_gw
13//   gw --generate-completion fish > ~/.config/fish/completions/gw.fish