GoSetup-bubble/types/msg.go

34 lines
531 B
Go
Raw Normal View History

2025-12-26 17:45:37 +05:00
package types
import tea "github.com/charmbracelet/bubbletea"
2025-12-26 17:45:37 +05:00
type SelectedAppMsg struct {
App PackageApplication
2025-12-26 17:45:37 +05:00
}
type BackToListMsg struct{}
2025-12-26 17:45:37 +05:00
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{}