MCPcopy Create free account
hub / github.com/codehamr/codehamr / appendStatus

Function appendStatus

internal/tui/render.go:332–334  ·  view source on GitHub ↗

appendStatus wraps one segment in styleStatus and appends it, keeping renderStatusBar readable instead of repeating the wrap at each call site.

(segs []string, s string)

Source from the content-addressed store, hash-verified

330}
331
332func (m Model) renderStatusBar() string {
333 sep := styleStatus.Render(" · ")
334 segs := []string{backendLabel(m.cfg, m.connected)}
335
336 if live := m.sessionTokens + m.streamingEstimate; live > 0 {
337 segs = appendStatus(segs, humanTokens(live))

Callers 1

renderStatusBarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected