plugins: Move plugins to dedicated submodule

This change groups the plugin modules together under kas.plugins and
moves the @kasplugin decorator to this submodule. This will ensure the
codebase stays organised as more plugins are added.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Paul Barker
2020-10-16 19:31:45 +02:00
committed by Jan Kiszka
parent af4389e606
commit 1dffb986b1
5 changed files with 55 additions and 30 deletions

View File

@@ -47,9 +47,9 @@ from . import __version__, __file_version__, __compatible_file_version__
# Import kas plugins
# Since they are added by decorators, they don't need to be called,
# just imported.
from .libkas import kasplugin
from . import build
from . import shell
from .plugins import kasplugin
from .plugins import build
from .plugins import shell
__all__ = ['build', 'shell']