cihai-cli 0.15+ (experimental)¶
Provisional support for completions in cihai-cli 0.15+ are powered by shtab. This must be installed separately, as it’s not currently bundled with cihai-cli.
$ pip install shtab --user
Or manage it inside an existing project with uv:
Install shtab as a user-wide tool with uv:
Run it on-demand without installing:
shtab --shell=bash -u cihai_cli.cli.create_parser \ | sudo tee "$BASH_COMPLETION_COMPAT_DIR"/CIHAI
shtab --shell=zsh -u cihai_cli.cli.create_parser \ | sudo tee /usr/local/share/zsh/site-functions/_CIHAI
shtab --shell=tcsh -u cihai_cli.cli.create_parser \ | sudo tee /etc/profile.d/CIHAI.completion.csh
cihai-cli 0.2 to 0.14¶
cihai-cli 0.2 to 0.14 use click’s completion:
~/.bashrc:
eval "$(_CIHAI_COMPLETE=bash_source cihai)"
~/.zshrc:
eval "$(_CIHAI_COMPLETE=zsh_source cihai)"