PTU5KAS/kas
Paul Barker af4389e606 kas: Simplify plugin lookup
By storing plugins in a dictionary indexed by plugin name rather than a
list, we can simplify plugin lookup and remove the undocumented need for
a plugin's run() method to return True when it has matched the given
command.

The command will be rejected by the argument parser if it does not match
one of the plugin names so we do not need to handle failure to lookup
the plugin in the dictionary.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2020-10-21 17:11:49 +02:00
..
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Correct grammar, spelling and copyright year in files 2018-09-05 12:46:35 +02:00
__version__.py Release 2.2 2020-08-20 09:17:34 +02:00
build.py kas: Simplify plugin lookup 2020-10-21 17:11:49 +02:00
config.py config: Make common repository check a bit more Pythonic 2020-07-31 11:32:25 +02:00
configschema.py config: Allow a default repo to be specified for patches 2020-07-07 11:48:47 +02:00
context.py kas: Support --update argument 2020-06-17 07:58:40 +02:00
includehandler.py kas: support .yaml extension 2020-07-24 18:44:45 +02:00
kas.py kas: Simplify plugin lookup 2020-10-21 17:11:49 +02:00
libcmds.py Report invalid repo key 2020-10-10 16:17:16 +02:00
libkas.py kas: Simplify plugin lookup 2020-10-21 17:11:49 +02:00
repos.py repos: Make set_remote_url_cmd fail loudly 2020-10-13 14:06:31 +02:00
shell.py kas: Simplify plugin lookup 2020-10-21 17:11:49 +02:00