Add SessionState

This commit is contained in:
The Magician 2024-06-08 16:47:06 +01:00
parent 017cad1f06
commit 4597a17299
1 changed files with 13 additions and 3 deletions

View File

@ -4,18 +4,28 @@ import (
"github.com/charmbracelet/bubbles/help"
)
type Model struct {
type SessionState int
const (
Home SessionState = iota
Update
)
type HomeModel struct {
WindowHeight int
WindowWidth int
State SessionState
Help help.Model
}
func NewModel() Model {
func NewHomeModel() HomeModel {
help := help.New()
help.ShortSeparator = help.FullSeparator
return Model{
Help: help,
SessionState: Home,
}
}