Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorStyle ¶
type DevTUI ¶
type DevTUI struct {
*TuiConfig
// contains filtered or unexported fields
}
DevTUI mantiene el estado de la aplicación
func (*DevTUI) ContentView ¶
ContentView renderiza los mensajes para una sección de contenido
func (*DevTUI) ReturnFocus ¶
type SectionField ¶
type SectionField struct {
Name string // eg: "port", "Server Port", "8080"
Label string // eg: "Server Port"
Value string // eg: "8080"
Editable bool // if no editable eject the action FieldValueChange directly
FieldValueChange func(newValue string) (runMessage string, err error) //eg: "8080" -> "9090" runMessage: "Port changed from 8080 to 9090"
// contains filtered or unexported fields
}
Interface for handling tab field sectionFields
func (*SectionField) SetCursorAtEnd ¶
func (cf *SectionField) SetCursorAtEnd()
type TabSection ¶
type TabSection struct {
Title string // eg: "BUILD", "TEST"
SectionFields []SectionField // Field actions configured for the section
// contains filtered or unexported fields
}
represent the tab section in the tui
type TuiConfig ¶
type TuiConfig struct {
TabIndexStart int // is the index of the tab to start
ExitChan chan bool // global chan to close app
TabSections []TabSection // represent sections in the tui
Color *ColorStyle
LogToFile func(messageErr string) // function to write log error
}
Click to show internal directories.
Click to hide internal directories.