diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-21 18:20:28 +0100 |
| commit | 4b0ea68d7af9a6031a7ffda7ad66e0cb83315750 (patch) | |
| tree | 8220c1bf6f107ea76dd78c7f57b77000c0c98a22 /internal/tui/components/repl | |
| download | opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.tar.gz opencode-4b0ea68d7af9a6031a7ffda7ad66e0cb83315750.zip | |
initial
Diffstat (limited to 'internal/tui/components/repl')
| -rw-r--r-- | internal/tui/components/repl/editor.go | 21 | ||||
| -rw-r--r-- | internal/tui/components/repl/messages.go | 21 | ||||
| -rw-r--r-- | internal/tui/components/repl/threads.go | 21 |
3 files changed, 63 insertions, 0 deletions
diff --git a/internal/tui/components/repl/editor.go b/internal/tui/components/repl/editor.go new file mode 100644 index 000000000..8a04889ab --- /dev/null +++ b/internal/tui/components/repl/editor.go @@ -0,0 +1,21 @@ +package repl + +import tea "github.com/charmbracelet/bubbletea" + +type editorCmp struct{} + +func (i *editorCmp) Init() tea.Cmd { + return nil +} + +func (i *editorCmp) Update(_ tea.Msg) (tea.Model, tea.Cmd) { + return i, nil +} + +func (i *editorCmp) View() string { + return "Editor" +} + +func NewEditorCmp() tea.Model { + return &editorCmp{} +} diff --git a/internal/tui/components/repl/messages.go b/internal/tui/components/repl/messages.go new file mode 100644 index 000000000..edef26502 --- /dev/null +++ b/internal/tui/components/repl/messages.go @@ -0,0 +1,21 @@ +package repl + +import tea "github.com/charmbracelet/bubbletea" + +type messagesCmp struct{} + +func (i *messagesCmp) Init() tea.Cmd { + return nil +} + +func (i *messagesCmp) Update(_ tea.Msg) (tea.Model, tea.Cmd) { + return i, nil +} + +func (i *messagesCmp) View() string { + return "Messages" +} + +func NewMessagesCmp() tea.Model { + return &messagesCmp{} +} diff --git a/internal/tui/components/repl/threads.go b/internal/tui/components/repl/threads.go new file mode 100644 index 000000000..aa2bc080b --- /dev/null +++ b/internal/tui/components/repl/threads.go @@ -0,0 +1,21 @@ +package repl + +import tea "github.com/charmbracelet/bubbletea" + +type threadsCmp struct{} + +func (i *threadsCmp) Init() tea.Cmd { + return nil +} + +func (i *threadsCmp) Update(_ tea.Msg) (tea.Model, tea.Cmd) { + return i, nil +} + +func (i *threadsCmp) View() string { + return "Threads" +} + +func NewThreadsCmp() tea.Model { + return &threadsCmp{} +} |
