Some checks failed
- Added @click.version_option decorator to main() in commands.py - Imported __version__ from loglens package - Resolves CI build failure: 'loglens --version' command not found
14 lines
299 B
Python
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
|