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

Method Init

tui/create.go:454–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452}
453
454func (m createModel) Init() tea.Cmd {
455 cmds := []tea.Cmd{
456 fetchCreateTemplatesCmd(m.client),
457 fetchCreateSnapshotsCmd(m.client),
458 fetchCreatePricingCmd(m.client),
459 m.spinner.Tick,
460 }
461 if !m.specsLoaded {
462 cmds = append(cmds, fetchCreateSpecsCmd(m.client))
463 }
464 return tea.Batch(cmds...)
465}
466
467func (m createModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
468 switch msg := msg.(type) {

Callers

nothing calls this directly

Calls 4

fetchCreateTemplatesCmdFunction · 0.85
fetchCreateSnapshotsCmdFunction · 0.85
fetchCreatePricingCmdFunction · 0.85
fetchCreateSpecsCmdFunction · 0.85

Tested by

no test coverage detected