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 GetPropertyKey(key string) 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 (
ListNavigationText = "load more"
ListNavigationRenderText = "+ Load more.."
)
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 (
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 BasicLayout = lipgloss.
NewStyle().
Margin(1, 0).
PaddingLeft(2)
View Source
var CheckmarkSymbol = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).SetString("✓")
View Source
var DefaultHorizontalMargin = 1
View Source
var DefaultLayoutMarginTop = 1
View Source
var DefaultListFooterPadding = &Padding{Left: 2}
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 SeparatorString = lipgloss.NewStyle().Foreground(LightGray).Render("===")
View Source
var TUITableMinimumWidth = 80
Functions ¶
func GetBoldedInfoMessage ¶ added in v0.13.0
func GetBoldedInfoMessage(message string) string
func GetBorderedMessage ¶ added in v0.13.0
func GetBorderedMessage(message string) string
func GetBranchNameLabel ¶ added in v0.26.0
func GetBranchNameLabel(branch string) string
func GetContainerBreakpointWidth ¶ added in v0.13.0
func GetContainerBreakpointWidth(terminalWidth int) int
func GetCustomTheme ¶
func GetCustomTheme() *huh.Theme
func GetEnvVarsInput ¶ added in v0.15.0
func GetEnvVarsInput(envVars *map[string]string) *huh.Text
func GetInfoMessage ¶ added in v0.13.0
func GetInfoMessage(message string) string
func GetInitialCommandTheme ¶ added in v0.13.0
func GetInitialCommandTheme() *huh.Theme
func GetListFooter ¶ added in v0.13.0
func GetListFooter(profileName string, padding *Padding) string
func GetListLine ¶ added in v0.13.0
func GetListLine(message string) string
func GetPropertyKey ¶ added in v0.13.0
func GetPropertyKey(key string) string
func GetStyledMainTitle ¶ added in v0.13.0
func GetStyledMainTitle(content string) string
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
type SelectionListOptions struct {
ParentIdentifier string
IsPaginationDisabled bool
CursorIndex int
}
Click to show internal directories.
Click to hide internal directories.