pyzshcomplete icon indicating copy to clipboard operation
pyzshcomplete copied to clipboard

Automatically detect adapter packages

Open dan1994 opened this issue 5 years ago • 0 comments

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).

dan1994 avatar Mar 26 '20 14:03 dan1994