Documentation ¶
Index ¶
- Variables
- func GetBoldedInfoMessage(message string) string
- func GetBorderedMessage(message string) string
- func GetBranchNameLabel(branch string) string
- func GetContainerBreakpointWidth(terminalWidth int) int
- func GetCustomTheme() *huh.Theme
- func GetEnvVarsInput(envVars *map[string]string) *huh.Text
- func GetInfoMessage(message string) string
- func GetInitialCommandTheme() *huh.Theme
- func GetListFooter(profileName string, padding *Padding) string
- func GetListLine(message string) string
- func GetPrettyLogLine(message string) string
- func GetPropertyKey(key string) string
- func GetStateLabel(state apiclient.ModelsResourceStateName) string
- func GetStyledMainTitle(content string) string
- func GetStyledSelectList(items []list.Item, listOptions ...SelectionListOptions) list.Model
- func RenderBorderedMessage(message string)
- func RenderContainerLayout(output string)
- func RenderCreationInfoMessage(message string)
- func RenderInfoMessage(message string)
- func RenderInfoMessageBold(message string)
- func RenderListLine(message string)
- func RenderMainTitle(title string)
- func RenderTip(message string)
- func RenderViewBuildLogsMessage(buildId string)
- type Padding
- type SelectionListOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ()
View Source
var ( Green = lipgloss.AdaptiveColor{Light: "#23cc71", Dark: "#23cc71"} Blue = lipgloss.AdaptiveColor{Light: "#017ffe", Dark: "#017ffe"} Yellow = lipgloss.AdaptiveColor{Light: "#d4ed2d", Dark: "#d4ed2d"} Cyan = lipgloss.AdaptiveColor{Light: "#3ef7e5", Dark: "#3ef7e5"} DimmedGreen = lipgloss.AdaptiveColor{Light: "#7be0a9", Dark: "#7be0a9"} Orange = lipgloss.AdaptiveColor{Light: "#e3881b", Dark: "#e3881b"} Light = lipgloss.AdaptiveColor{Light: "#000", Dark: "#fff"} Dark = lipgloss.AdaptiveColor{Light: "#fff", Dark: "#000"} Gray = lipgloss.AdaptiveColor{Light: "243", Dark: "243"} LightGray = lipgloss.AdaptiveColor{Light: "#828282", Dark: "#828282"} Red = lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#ED567A"} )
View Source
var ( ColorPending = lipgloss.AdaptiveColor{Light: "#cce046", Dark: "#cce046"} ColorSuccess = lipgloss.AdaptiveColor{Light: "#2ecc71", Dark: "#2ecc71"} ColorStarting = ColorSuccess ColorStopped = lipgloss.AdaptiveColor{Light: "#a2a2a2", Dark: "#a2a2a2"} ColorStopping = ColorStopped ColorError = lipgloss.AdaptiveColor{Light: "#e74c3c", Dark: "#e74c3c"} ColorDeleting = ColorStopped ColorDeleted = ColorStopped ColorUnresponsive = ColorError )
View Source
var ( BaseTableStyleHorizontalPadding = 4 BaseTableStyle = lipgloss.NewStyle(). PaddingLeft(BaseTableStyleHorizontalPadding). PaddingRight(BaseTableStyleHorizontalPadding). PaddingTop(1). Margin(1, 0) NameStyle = lipgloss.NewStyle().Foreground(Light) ActiveStyle = lipgloss.NewStyle().Foreground(Green) InactiveStyle = lipgloss.NewStyle().Foreground(Orange) DefaultRowDataStyle = lipgloss.NewStyle().Foreground(Gray) BaseCellStyle = lipgloss.NewRenderer(os.Stdout).NewStyle().Padding(0, 4, 1, 0) TableHeaderStyle = BaseCellStyle.Foreground(LightGray).Bold(false).Padding(0).MarginRight(4) )
View Source
var ( UndefinedStyle = lipgloss.NewStyle().Foreground(ColorPending) PendingStyle = lipgloss.NewStyle().Foreground(ColorPending) RunningStyle = lipgloss.NewStyle().Foreground(ColorPending) RunSuccessfulStyle = lipgloss.NewStyle().Foreground(ColorSuccess) CreatingStyle = lipgloss.NewStyle().Foreground(ColorPending) StartedStyle = lipgloss.NewStyle().Foreground(ColorSuccess) StartingStyle = lipgloss.NewStyle().Foreground(ColorStarting) StoppedStyle = lipgloss.NewStyle().Foreground(ColorStopped) StoppingStyle = lipgloss.NewStyle().Foreground(ColorStopping) ErrorStyle = lipgloss.NewStyle().Foreground(ColorError) DeletingStyle = lipgloss.NewStyle().Foreground(ColorDeleting) DeletedStyle = lipgloss.NewStyle().Foreground(ColorDeleted) UnresponsiveStyle = lipgloss.NewStyle().Foreground(ColorUnresponsive) )
View Source
var BasicLayout = lipgloss. NewStyle(). Margin(1, 0). PaddingLeft(2)
View Source
var DefaultHorizontalMargin = 1
View Source
var DefaultLayoutMarginTop = 1
View Source
var DocStyle = lipgloss. NewStyle(). Margin(3, 2, 1, 2). Padding(1, 2)
View Source
var LogPrefixColors = []lipgloss.AdaptiveColor{ Blue, Orange, Cyan, Yellow, }
View Source
var ResourceListStatePriorities = map[apiclient.ModelsResourceStateName]int{ apiclient.ResourceStateNamePendingRun: 1, apiclient.ResourceStateNamePendingCreate: 1, apiclient.ResourceStateNamePendingStart: 1, apiclient.ResourceStateNamePendingStop: 1, apiclient.ResourceStateNamePendingRestart: 1, apiclient.ResourceStateNamePendingDelete: 1, apiclient.ResourceStateNamePendingForcedDelete: 1, apiclient.ResourceStateNameRunning: 1, apiclient.ResourceStateNameCreating: 1, apiclient.ResourceStateNameStarting: 1, apiclient.ResourceStateNameStopping: 1, apiclient.ResourceStateNameDeleting: 1, apiclient.ResourceStateNameStarted: 2, apiclient.ResourceStateNameRunSuccessful: 2, apiclient.ResourceStateNameUndefined: 2, apiclient.ResourceStateNameError: 3, apiclient.ResourceStateNameUnresponsive: 4, apiclient.ResourceStateNameStopped: 5, apiclient.ResourceStateNameDeleted: 6, }
Resources that have actions being performed on them have a higher priority when listing
View Source
var SeparatorString = lipgloss.NewStyle().Foreground(LightGray).Render("===")
View Source
var TUITableMinimumWidth = 80
Functions ¶
func GetBoldedInfoMessage ¶ added in v0.13.0
func GetBorderedMessage ¶ added in v0.13.0
func GetBranchNameLabel ¶ added in v0.26.0
func GetContainerBreakpointWidth ¶ added in v0.13.0
func GetCustomTheme ¶
func GetInfoMessage ¶ added in v0.13.0
func GetInitialCommandTheme ¶ added in v0.13.0
func GetListFooter ¶ added in v0.13.0
func GetListLine ¶ added in v0.13.0
func GetPrettyLogLine ¶ added in v0.52.0
Bolds the message and prepends a checkmark
func GetPropertyKey ¶ added in v0.13.0
func GetStateLabel ¶ added in v0.52.0
func GetStateLabel(state apiclient.ModelsResourceStateName) string
func GetStyledMainTitle ¶ added in v0.13.0
func GetStyledSelectList ¶
func GetStyledSelectList(items []list.Item, listOptions ...SelectionListOptions) list.Model
func RenderBorderedMessage ¶ added in v0.13.0
func RenderBorderedMessage(message string)
func RenderContainerLayout ¶ added in v0.13.0
func RenderContainerLayout(output string)
func RenderCreationInfoMessage ¶ added in v0.13.0
func RenderCreationInfoMessage(message string)
func RenderInfoMessage ¶ added in v0.13.0
func RenderInfoMessage(message string)
func RenderInfoMessageBold ¶ added in v0.13.0
func RenderInfoMessageBold(message string)
func RenderListLine ¶ added in v0.13.0
func RenderListLine(message string)
func RenderMainTitle ¶ added in v0.13.0
func RenderMainTitle(title string)
func RenderViewBuildLogsMessage ¶ added in v0.26.0
func RenderViewBuildLogsMessage(buildId string)
Types ¶
type SelectionListOptions ¶ added in v0.38.0
Click to show internal directories.
Click to hide internal directories.