MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / newUpdateProgressModel

Function newUpdateProgressModel

tui/update.go:134–143  ·  view source on GitHub ↗
(message string, action func() error)

Source from the content-addressed store, hash-verified

132}
133
134func newUpdateProgressModel(message string, action func() error) updateProgressModel {
135 InitCommonStyles(os.Stdout)
136 s := NewPrimarySpinner()
137 return updateProgressModel{
138 spinner: s,
139 message: message,
140 action: action,
141 styles: newUpdateStyles(),
142 }
143}
144
145func (m updateProgressModel) Init() tea.Cmd {
146 return tea.Batch(m.spinner.Tick, runUpdateAction(m.action))

Callers 1

RunUpdateProgressFunction · 0.85

Calls 3

InitCommonStylesFunction · 0.85
NewPrimarySpinnerFunction · 0.85
newUpdateStylesFunction · 0.85

Tested by

no test coverage detected