add initial stuff

This commit is contained in:
Kujtim Hoxha
2025-03-23 19:19:08 +01:00
parent 796bbf4d66
commit 8daa6e774a
36 changed files with 1779 additions and 143 deletions

View File

@@ -1,8 +1,13 @@
package repl
import tea "github.com/charmbracelet/bubbletea"
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/kujtimiihoxha/termai/internal/app"
)
type messagesCmp struct{}
type messagesCmp struct {
app *app.App
}
func (i *messagesCmp) Init() tea.Cmd {
return nil
@@ -16,6 +21,8 @@ func (i *messagesCmp) View() string {
return "Messages"
}
func NewMessagesCmp() tea.Model {
return &messagesCmp{}
func NewMessagesCmp(app *app.App) tea.Model {
return &messagesCmp{
app,
}
}