(text string)
| 33 | } |
| 34 | |
| 35 | func NewBusyModel(text string) BusyModel { |
| 36 | InitCommonStyles(os.Stdout) |
| 37 | s := NewPrimarySpinner() |
| 38 | return BusyModel{ |
| 39 | text: text, |
| 40 | spin: s, |
| 41 | styles: newBusyStyles(), |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (m BusyModel) Init() tea.Cmd { |
| 46 | return m.spin.Tick |
no test coverage detected