cli
cli copied to clipboard
feat: install fish completion automatically via setup.cfg
Summary
Closes #912.
Fish shell completions for http and https already exist in
extras/httpie-completion.fish, but they were not wired into the
package's install step, so users had to discover and copy the file
manually.
This PR adds the file to [options.data_files] in setup.cfg under
share/fish/vendor_completions.d/, the
standard vendor completions directory
that fish auto-loads on startup.
After this change, pip install httpie will drop the completion file in
the right place with no user action required — matching the behaviour of
tools like bat, rg, and docker.
What changed
setup.cfg: one new entry under [options.data_files]
Test plan
- [ ]
pip install -e .on a machine with fish installed, verifyhttp <TAB>shows completions - [ ]
pip install -e .without fish — confirm install succeeds (data_files writes silently to a non-existent path; expected behaviour)