mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
initial
This commit is contained in:
commit
4b0ea68d7a
28 changed files with 2229 additions and 0 deletions
21
internal/tui/components/repl/editor.go
Normal file
21
internal/tui/components/repl/editor.go
Normal file
|
|
@ -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{}
|
||||
}
|
||||
21
internal/tui/components/repl/messages.go
Normal file
21
internal/tui/components/repl/messages.go
Normal file
|
|
@ -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{}
|
||||
}
|
||||
21
internal/tui/components/repl/threads.go
Normal file
21
internal/tui/components/repl/threads.go
Normal file
|
|
@ -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{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue