Private
()
| 106 | // Private |
| 107 | |
| 108 | func (m *cliProgress) barWidth() int { |
| 109 | prefixWidth := len(m.label) + 1 + len(m.stage) + 2 // " " + stage + ": " |
| 110 | w := max(m.width-prefixWidth, 10) |
| 111 | return w |
| 112 | } |
| 113 | |
| 114 | func (m *cliProgress) runTask() tea.Cmd { |
| 115 | return func() tea.Msg { |