Function
NewModel
(ctx context.Context, c meta.Meta, parallelism int, l meta.ImportList)
Source from the content-addressed store, hash-verified
| 29 | } |
| 30 | |
| 31 | func 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 | |
| 43 | func (m Model) Init() tea.Cmd { |
| 44 | if m.iterationDone() { |
Tested by
no test coverage detected