()
| 67 | } |
| 68 | |
| 69 | func (m BusyModel) View() string { |
| 70 | if m.Quitting { |
| 71 | return "" |
| 72 | } |
| 73 | return m.spin.View() + " " + m.styles.text.Render(m.text) + "\n" + m.styles.help.Render("Esc/Q: Quit\n") |
| 74 | } |
| 75 | |
| 76 | // RunWithBusySpinner shows a spinner while fn executes, then dismisses it. |
| 77 | // In non-interactive mode (no TTY), it skips the TUI spinner and runs fn synchronously. |
no outgoing calls