MCPcopy Create free account
hub / github.com/basecamp/hey-cli / syncLoading

Method syncLoading

internal/tui/tui.go:128–138  ·  view source on GitHub ↗

syncLoading synchronizes the main loading state with the active section view.

(cmd tea.Cmd)

Source from the content-addressed store, hash-verified

126 toastID uint64
127
128 // Loading & error
129 loading bool
130 spinnerPhase float64
131 err error
132 ctrlCOnce bool
133 pendingOpen *OpenRequest
134}
135
136func newModel() model {
137 return newModelWithMailAccounts(nil, nil, "all", Watchers{})
138}
139
140func newModelWithMailAccounts(rootSDK, sdk *hey.Client, selected string, watchers Watchers) model {
141 theme := ResolveTheme()

Callers 3

UpdateMethod · 0.95
handleKeyMethod · 0.95
switchSectionMethod · 0.95

Calls 2

spinnerTickFunction · 0.85
LoadingMethod · 0.65

Tested by

no test coverage detected