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

Method prevVisibleStep

tui/create.go:372–379  ·  view source on GitHub ↗

prevVisibleStep returns the previous non-skipped step. Returns -1 if none.

(from createStep)

Source from the content-addressed store, hash-verified

370
371// prevVisibleStep returns the previous non-skipped step. Returns -1 if none.
372func (m *createModel) prevVisibleStep(from createStep) createStep {
373 for s := from - 1; s >= stepGPU; s-- {
374 if !m.skippedSteps[s] {
375 return s
376 }
377 }
378 return -1
379}
380
381type createTemplatesMsg struct {
382 templates []api.TemplateEntry

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected