Add SessionState
This commit is contained in:
parent
017cad1f06
commit
4597a17299
|
@ -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,
|
||||
Help: help,
|
||||
SessionState: Home,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue