GoSetup-bubble/types/msg.go

49 lines
738 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 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{}