pyzshcomplete
pyzshcomplete copied to clipboard
Automatically detect adapter packages
Currently we have to manually import each adapter and have an ugly function (_parser_adapter) with (potentially) lots of if statements.
We could detect these packages automatically, and have each parser_adapter declare the type of parser it matches. Then, we can convert the _parser_adapter to a (slightly) more elegant for loop, and not have to update it ever again (when adding new parsers).