Documentation
¶
Index ¶
- func ApplyColor(colorName, symbol string) string
- func ComputeRemainderWidth(termWidth int, minWidth int, usedWidths ...int) int
- func EffectiveWidths(header []string, rows [][]string, maxWidths []int) []int
- func Errf(format string, args ...any)
- func Fail(msg string, args ...any)
- func FormatDetail(msg, time string) string
- func FormatDispatchHeader(name, vcs string) string
- func FormatDispatchStatusLine(status backend.RepoStatus, includeDetail bool) string
- func FormatSummary(total int, failed []string) string
- func GetTermWidth() int
- func Muted(s string) string
- func MutedStyle() lipgloss.Style
- func Out(s string)
- func Outf(format string, args ...any)
- func RenderDispatchResult(res runner.Result) string
- func RenderHeader(cells []string, widths []int) string
- func RenderRow(cells []string, widths []int) string
- func RenderTable(header []string, rows [][]string, widths []int) string
- func SetLogger(l *log.Logger)
- func StateStyle(state backend.RefState) lipgloss.Style
- func Success(msg string, args ...any)
- func WarnStyle() lipgloss.Style
- func Warnf(format string, args ...any)
- type StatusLineParts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyColor ¶ added in v0.3.0
func ComputeRemainderWidth ¶
func EffectiveWidths ¶ added in v0.3.0
func FormatDetail ¶ added in v0.3.0
func FormatDispatchHeader ¶ added in v0.3.0
func FormatDispatchStatusLine ¶ added in v0.3.0
func FormatDispatchStatusLine(status backend.RepoStatus, includeDetail bool) string
func FormatSummary ¶ added in v0.3.0
func GetTermWidth ¶
func GetTermWidth() int
func MutedStyle ¶ added in v0.3.0
func Out ¶ added in v0.12.0
func Out(s string)
Out prints s followed by a newline. Unlike Outf it does not interpret format verbs, so it is safe for dynamic strings (paths, command output).
func RenderDispatchResult ¶
func RenderHeader ¶ added in v0.3.0
func RenderTable ¶ added in v0.3.0
Types ¶
type StatusLineParts ¶ added in v0.3.0
type StatusLineParts struct {
Ref string
Symbols string
Detail string
HasRef bool
HasError bool
Error string
}
func FormatStatusLine ¶ added in v0.3.0
func FormatStatusLine(status backend.RepoStatus, symStr string, detail string) StatusLineParts
Click to show internal directories.
Click to hide internal directories.