View represents a TUI view component
| 22 | |
| 23 | // View represents a TUI view component |
| 24 | type View interface { |
| 25 | // Init initializes the view and returns any initial commands |
| 26 | Init() tea.Cmd |
| 27 | |
| 28 | // Update handles messages and updates the view state |
| 29 | Update(msg tea.Msg) (View, tea.Cmd) |
| 30 | |
| 31 | // View renders the view to a string |
| 32 | View() string |
| 33 | |
| 34 | // SetSize updates the view dimensions |
| 35 | SetSize(width, height int) |
| 36 | } |
| 37 | |
| 38 | // BaseModel contains common fields for all views |
| 39 | type BaseModel struct { |
no outgoing calls
no test coverage detected