()
| 452 | } |
| 453 | |
| 454 | func (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 | |
| 467 | func (m createModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { |
| 468 | switch msg := msg.(type) { |
nothing calls this directly
no test coverage detected