Well-known CLIs often come with auto-completion, while there are still many CLIs that lack auto-completion scripts in different kinds of shell. It's frustrating for me to execute `cmd --help` every time I forget the parameter.
I hope complish (named after fish+completion and accomplish) can solve this problem in my favorite fish shell.
Approach
1. parse help page of a CLI
2. generate fish-completion file
ChatGPT demonstrates excellent performance in text-to-structure. So I use OpenAI's API to parse CLI's help page and then generate fish-completion scripts.
Drawback
1. a little slow since it calls OpenAI's API. It takes 10s to 1min to do this work depending on the scale of the help page text.
2. some help pages are too long to parse in one call, I plan to split help page text to handle this.
After all, welcome to have a try and give me suggestion.