from __future__ import annotations

from typing import final

from typing_extensions import override

from usethis._console import how_print
from usethis._tool.base import Tool
from usethis._tool.impl.spec.codespell import CodespellToolSpec


@final
class CodespellTool(CodespellToolSpec, Tool):
    @override
    def print_how_to_use(self) -> None:
        how_print(f"Run '{self.how_to_use_cmd()}' to run the {self.name} spellchecker.")
