GoSetup-bubble/types/msg.go

48 lines
738 B
Go

package types
import tea "github.com/charmbracelet/bubbletea"
type SelectedAppMsg struct {
App PackageApplication
}
type BackToListMsg struct{}
type SelectedOptionMsg struct {
FieldIndex int
Value string
}
type NextSectionMsg struct{}
type SugarMsg struct {
VariableName string
FieldName string
Compute string
Focus int
}
type SelectedDirMsg struct {
DirectoryName string
Index int
}
type SelectedFileMsg struct {
Filename string
Index int
}
type ShowModalMsg struct {
Type ModalType
Title string
Message string
ModalButtons []ModalButton
OnResult func(result any) tea.Cmd
}
type ModalButton struct {
Text string
Value any
}
type CloseModalMsg struct{}