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

Function fetchInstancesCmd

tui/status.go:171–176  ·  view source on GitHub ↗
(client *api.Client)

Source from the content-addressed store, hash-verified

169}
170
171func fetchInstancesCmd(client *api.Client) tea.Cmd {
172 return func() tea.Msg {
173 instances, err := client.ListInstances()
174 return instancesMsg{instances: instances, err: err}
175 }
176}
177
178func deferQuit() tea.Cmd {
179 return tea.Tick(1*time.Millisecond, func(time.Time) tea.Msg { return quitNow{} })

Callers 1

UpdateMethod · 0.85

Calls 1

ListInstancesMethod · 0.65

Tested by

no test coverage detected