MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / NewHistoryView

Function NewHistoryView

internal/tui/views/history.go:42–49  ·  view source on GitHub ↗
(width, height int)

Source from the content-addressed store, hash-verified

40}
41
42func NewHistoryView(width, height int) *HistoryView {
43 return &HistoryView{
44 ActiveSection: HistorySectionContent,
45 listVisible: 10, // sensible default before first render
46 Width: width,
47 Height: height,
48 }
49}
50
51// clampListOffset ensures ListOffset keeps Selected in the visible window.
52// It uses the listVisible value set during the last Render().

Callers 1

NewAppFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected