Add Bash/Zsh shell completions
What do you want to change?
Add shell completion support for Hunk, initially for Bash and Zsh.
Completions should cover commands, subcommands, options, and known enum-like option values where practical, for example --mode, --cursor-line, and --method.
Why?
Hunk now has a fairly broad CLI surface with nested commands such as session, daemon, extension, and markup.
Without shell completions, users need to remember command names and options or repeatedly check --help. Bash/Zsh completion would make the CLI faster to discover and use, especially for less frequently used commands.
How? (optional)
The CLI reference is already generated from Hunk's command metadata, so completions could ideally use the same metadata as the source of truth rather than maintaining separate command lists.
One possible interface would be:
hunk completion bash
hunk completion zsh
The generated script could then be sourced directly or installed by package-manager integrations where appropriate.
Source: modem-dev/hunk