MCPcopy
hub / github.com/Azure/aztfexport / NewModel

Function NewModel

internal/ui/progress/progress.go:31–41  ·  view source on GitHub ↗
(ctx context.Context, c meta.Meta, parallelism int, l meta.ImportList)

Source from the content-addressed store, hash-verified

29}
30
31func NewModel(ctx context.Context, c meta.Meta, parallelism int, l meta.ImportList) Model {
32 return Model{
33 ctx: ctx,
34 c: c,
35 l: l,
36 idx: 0,
37 parallelism: parallelism,
38 results: make([]result, common.ProgressShowLastResults),
39 progress: prog.NewModel(prog.WithDefaultGradient()),
40 }
41}
42
43func (m Model) Init() tea.Cmd {
44 if m.iterationDone() {

Callers 1

UpdateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected