Documentation
¶
Overview ¶
Package tui provides terminal UI components for ssmx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StyleOnline = lipgloss.NewStyle().Foreground(colourOnline).Bold(true) StyleOffline = lipgloss.NewStyle().Foreground(colourOffline).Bold(true) StyleUnknown = lipgloss.NewStyle().Foreground(colourUnknown) StyleHeader = lipgloss.NewStyle().Bold(true).Underline(true).Foreground(lipgloss.Color("#ffffff")) StyleSelected = lipgloss.NewStyle().Background(colourSelected).Foreground(lipgloss.Color("#ffffff")) StyleDim = lipgloss.NewStyle().Foreground(lipgloss.Color("#626262")) StyleBold = lipgloss.NewStyle().Bold(true) StyleSuccess = lipgloss.NewStyle().Foreground(colourOnline) StyleError = lipgloss.NewStyle().Foreground(colourOffline) StyleWarning = lipgloss.NewStyle().Foreground(lipgloss.Color("#ffaf00")) )
Style variables for TUI rendering.
Functions ¶
func RunPicker ¶
RunPicker runs the bubbletea instance picker and returns the chosen instance, or nil if the user cancelled.
func SSMStatusGlyph ¶
SSMStatusGlyph returns a single character indicator for SSM status.
func SSMStatusStyle ¶
SSMStatusStyle returns the appropriate lipgloss style for an SSM status string.
Types ¶
type PickerModel ¶
type PickerModel struct {
// contains filtered or unexported fields
}
PickerModel is the bubbletea model for the interactive instance picker.
func NewPickerModel ¶
func NewPickerModel(instances []awsclient.Instance) PickerModel
NewPickerModel creates a PickerModel populated with the given instances.
type PickerResult ¶
PickerResult is returned when the user selects an instance or cancels.
Click to show internal directories.
Click to hide internal directories.