Documentation
¶
Overview ¶
Package output provides formatters for analysis results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
type Formatter interface {
Format(w io.Writer, result *analyze.AnalysisResult) error
}
Formatter writes analysis results to a writer.
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter outputs results as indented JSON.
func (JSONFormatter) Format ¶
func (JSONFormatter) Format(w io.Writer, result *analyze.AnalysisResult) error
Format implements Formatter.
type LLMFormatter ¶
type LLMFormatter struct {
RawOutputPath string // if set, write full JSON to file instead of embedding
}
LLMFormatter produces structured output optimized for LLM consumption. Combines narrative context with raw JSON data.
func (LLMFormatter) Format ¶
func (l LLMFormatter) Format(w io.Writer, result *analyze.AnalysisResult) error
Format implements Formatter.
type MarkdownFormatter ¶
type MarkdownFormatter struct {
Verbose bool
}
MarkdownFormatter outputs results as a markdown report.
func (MarkdownFormatter) Format ¶
func (MarkdownFormatter) Format(w io.Writer, result *analyze.AnalysisResult) error
Format implements Formatter.
type Options ¶
type Options struct {
Verbose bool
RawOutputPath string // if set, write full JSON to this file instead of embedding
}
Options controls formatter behavior.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
Progress writes status updates to stderr. On a TTY, it overwrites the current line. Otherwise, it prints each update on a new line. All methods are safe for concurrent use.
func (*Progress) Done ¶
func (p *Progress) Done()
Done clears the current status line (on TTY) to make room for final output.
type TableFormatter ¶
type TableFormatter struct {
Verbose bool
}
TableFormatter outputs results as a human-readable table.
func (TableFormatter) Format ¶
func (t TableFormatter) Format(w io.Writer, result *analyze.AnalysisResult) error
Format implements Formatter.