6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-04 19:03:39 +00:00

chore: replaced unnamed hook filters by named equivalents

This commit is contained in:
Régis Behmo 2022-11-14 12:22:42 +01:00 committed by Régis Behmo
parent fd2d3dea10
commit 8aeeb7e09c
2 changed files with 4 additions and 14 deletions

View File

@ -127,17 +127,8 @@ def help_command(context: click.Context) -> None:
context.invoke(cli, show_help=True)
hooks.filters.add_items(
"cli:commands",
[
images_command,
config_command,
local,
dev,
k8s,
help_command,
plugins_command,
],
hooks.Filters.CLI_COMMANDS.add_items(
[images_command, config_command, local, dev, k8s, help_command, plugins_command]
)

View File

@ -198,8 +198,7 @@ class BasePlugin:
hooks.Filters.ENV_TEMPLATE_ROOTS.add_item(templates_root)
# We only add the "apps" and "build" folders and we render them in the
# "plugins/<plugin name>" folder.
hooks.filters.add_items(
"env:templates:targets",
hooks.Filters.ENV_TEMPLATE_TARGETS.add_items(
[
(
os.path.join(self.name, "apps"),
@ -209,7 +208,7 @@ class BasePlugin:
os.path.join(self.name, "build"),
"plugins",
),
],
]
)
def _load_command(self) -> None: