Re:Creating a bash completion script (2018)
by nrclark on Wednesday March 02, 2022 @11:13AM
(#30528935)
It doesn't have to be pure shell. I've written a few tools that have built-in completion helpers. All their completion scripts have to do is run the tool with the right environment variables, and return the results.
That's also how autocompletion works with Python's excellent Click library.
That's also how autocompletion works with Python's excellent Click library.