Files
loglens-cli/loglens/formatters/base.py
7000pctAUTO 4a62d7ecb9
Some checks failed
CI / test (3.10) (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
fix: add --version option to Click CLI group
- Added @click.version_option decorator to main() in commands.py
- Imported __version__ from loglens package
- Resolves CI build failure: 'loglens --version' command not found
2026-02-02 09:25:06 +00:00

14 lines
299 B
Python

from abc import ABC, abstractmethod
from typing import Any
from loglens.analyzers.analyzer import AnalysisResult
class Formatter(ABC):
"""Base formatter class."""
@abstractmethod
def format(self, result: AnalysisResult) -> str:
"""Format the analysis result."""
pass