MCPcopy Create free account
hub / github.com/SamNet-dev/snix / appendLog

Method appendLog

tui/run.go:109–116  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

107}
108
109func (m *runModel) appendLog(line string) {
110 m.logs = append(m.logs, line)
111 if len(m.logs) > maxLogLines {
112 m.logs = m.logs[len(m.logs)-maxLogLines:]
113 }
114 m.vp.SetContent(strings.Join(m.logs, "\n"))
115 m.vp.GotoBottom()
116}
117
118func (m runModel) View() string {
119 header := sectionStyle.Render("Run — start/stop the snix engine and watch logs")

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected