Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
Display renders watch mode output to the terminal.
func NewDisplay ¶
NewDisplay creates a new Display.
func (*Display) RenderExit ¶
RenderExit shows the summary when watch mode ends.
func (*Display) RenderHeader ¶
RenderHeader shows the watch mode banner.
func (*Display) RenderResult ¶
RenderResult shows the latest analysis result.
func (*Display) RenderWaiting ¶
func (d *Display) RenderWaiting()
RenderWaiting shows the idle state.
type Options ¶
type Options struct {
PollInterval time.Duration // how often to check for changes (default 500ms)
Debounce time.Duration // wait this long after last change before running (default 200ms)
}
Options configures the watcher behavior.
type RunResult ¶
type RunResult struct {
Result *analyzer.AnalysisResult
Timestamp time.Time
Duration time.Duration
Trigger string // which file triggered the run
}
RunResult holds the output of a single analysis cycle.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher monitors the git working tree and runs analysis on changes.
Click to show internal directories.
Click to hide internal directories.