from __future__ import annotations # noqa D100
import logging
from typing import TYPE_CHECKING, final, Self
from typing_extensions import override
from betty.app.factory import AppDependentFactory
from betty.cli.commands import command, Command
from betty.locale.localizable import _
from betty.plugin import ShorthandPluginBase
if TYPE_CHECKING:
import asyncclick as click
from betty.app import App
[docs]
@final
class ClearCaches(ShorthandPluginBase, AppDependentFactory, Command):
"""
A command to clear all Betty caches.
"""
_plugin_id = "clear-caches"
_plugin_label = _("Clear all caches")