This commit is contained in:
2026-04-06 01:23:10 +09:00
commit 09c78206a8
12 changed files with 439 additions and 0 deletions

22
internal/tui/init.go Normal file
View File

@@ -0,0 +1,22 @@
package tui
import (
"filepass/internal/pages"
"filepass/internal/services"
tea "charm.land/bubbletea/v2"
)
type configLoadedMsg struct {
servers map[string]services.Server
err error
}
func (m TUIInterface) Init() tea.Cmd {
return tea.Batch(
func() tea.Msg { return pages.HomePageMsg{} },
func() tea.Msg {
return configLoadedMsg{servers: m.Services.Config.Servers()}
},
)
}