GoSetup-bubble/types/msg.go

33 lines
531 B
Go

package types
import tea "github.com/charmbracelet/bubbletea"
type SelectedAppMsg struct {
App PackageApplication
}
type BackToListMsg struct{}
type NextSectionMsg struct{}
type SugarMsg struct {
VariableName string
FieldName string
Compute string
Focus 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{}