Something went wrong. Try again.
churn, baby, churn!
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233package ui
import ( "github.com/charmbracelet/bubbles/table" tea "github.com/charmbracelet/bubbletea")
type ModelTable struct { Table table.Model}
func (m ModelTable) Init() tea.Cmd { return nil}
func (m ModelTable) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: switch msg.String() { case "q": return m, tea.Quit } }
var cmd tea.Cmd m.Table, cmd = m.Table.Update(msg) return m, cmd}
func (m ModelTable) View() string { return m.Table.View()}