Documentation
¶
Overview ¶
Package ui provides terminal UI rendering for repo status and dispatch results.
Index ¶
- func ColorSprint(c text.Colors, s string) string
- func ComputeRemainderWidth(termWidth int, minWidth int, usedWidths ...int) int
- func Errf(format string, args ...any)
- func Fail(msg string, args ...any)
- func GetTermWidth() int
- func Info(msg string, args ...any)
- func NewTable() table.Writer
- func Outf(format string, args ...any)
- func RenderDispatchResult(res runner.Result) string
- func Success(msg string, args ...any)
- func Truncate(s string, maxLen int) string
- func Warn(msg string, args ...any)
- func Wrap(s string, maxLen int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorSprint ¶
ColorSprint prints a string with the given text colors.
func ComputeRemainderWidth ¶
ComputeRemainderWidth calculates remaining width after accounting for used columns.
func RenderDispatchResult ¶
RenderDispatchResult renders a dispatch result (success/failure).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.