MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / Clear

Method Clear

internal/tui/log.go:276–281  ·  view source on GitHub ↗

Clear clears all log entries.

()

Source from the content-addressed store, hash-verified

274
275// Clear clears all log entries.
276func (l *LogViewer) Clear() {
277 l.entries = make([]LogEntry, 0)
278 l.scrollPos = 0
279 l.autoScroll = true
280 l.totalLineCount = 0
281}
282
283// Render renders only the visible portion of the log viewer.
284func (l *LogViewer) Render() string {

Callers 3

TestLogViewer_ClearFunction · 0.95
switchToPRDMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestLogViewer_ClearFunction · 0.76