()
| 39 | ) |
| 40 | |
| 41 | func (s AppState) String() string { |
| 42 | switch s { |
| 43 | case StateReady: |
| 44 | return "Ready" |
| 45 | case StateRunning: |
| 46 | return "Running" |
| 47 | case StatePaused: |
| 48 | return "Paused" |
| 49 | case StateStopped: |
| 50 | return "Stopped" |
| 51 | case StateComplete: |
| 52 | return "Complete" |
| 53 | case StateError: |
| 54 | return "Error" |
| 55 | default: |
| 56 | return "Unknown" |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // LoopEventMsg wraps a loop event for the Bubble Tea model. |
| 61 | type LoopEventMsg struct { |
no outgoing calls