Complish – Generate Fish-Completion File for Any CLI via ChatGPT
Complish – Generate Fish-Completion File for Any CLI via ChatGPT
Background 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.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Chernoff Fish
ChatGPT as a CLI
Fish favourites directory or file picker
Online Wooden Fish Meditation Tool
Exploding Fish – A URI Library for Clojure
ChatGPT-CLI, a Unix-y client
Getopts(1)-like CLI parser for fish-shell
Pancake – a CLI/Emacs web/gopher/file browser
How to Fish Wiki – Bosses, Fish and Guides
ChatGPT CLI, interactive or file based sessions with context and moods