refactor: cleanup initial impl and modularize everything

This commit is contained in:
2021-11-13 06:38:12 +02:00
parent 867e874ed3
commit 4bdb4a0fb3
10 changed files with 440 additions and 331 deletions
+2 -1
View File
@@ -20,10 +20,11 @@ import (
"log"
tea "github.com/charmbracelet/bubbletea"
"github.com/illusionman1212/gorc/ui/app"
)
func main() {
if err := tea.NewProgram(initialState(), tea.WithAltScreen()).Start(); err != nil {
if err := tea.NewProgram(app.InitialState(), tea.WithAltScreen()).Start(); err != nil {
log.Fatal(err)
}