Skip to content

Conversation

@jacobmealey
Copy link
Contributor

This PR introduces a script generate_completions.sh which extracts the command line options from trurl.md and sorts them in to different buckets: standalone (things like --json, --accept-space), component options (things like --set, --iterate which take a component= directly after), random options (things like --qtrim, --url-file that take an option but we don't control what it is), and the components. The _trurl.zsh.in is a template that these different list of options are inserted into.

I also added a completions task to the Makefile, and updated the install to copy them to /usr/local/share/zsh/site-functions if the completion has been built.

@bagder bagder merged commit 6b52fa5 into curl:master Jan 4, 2025
10 checks passed
@bagder bagder mentioned this pull request Jan 4, 2025
@alerque
Copy link
Contributor

alerque commented May 12, 2025

This didn't actually get tested. See #390. I'm trying to package the last release for Arch Linux and have run into two things so far that would never have worked properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants