ui

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ui provides terminal UI rendering for repo status and dispatch results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorSprint

func ColorSprint(c text.Colors, s string) string

ColorSprint prints a string with the given text colors.

func ComputeRemainderWidth

func ComputeRemainderWidth(termWidth int, minWidth int, usedWidths ...int) int

ComputeRemainderWidth calculates remaining width after accounting for used columns.

func Errf

func Errf(format string, args ...any)

Errf prints to stderr with formatting.

func Fail

func Fail(msg string, args ...any)

Fail prints a red error message to stderr.

func GetTermWidth

func GetTermWidth() int

GetTermWidth returns the current terminal width.

func Info

func Info(msg string, args ...any)

Info prints an cyan info message to stderr.

func NewTable

func NewTable() table.Writer

NewTable creates a new table writer for status output.

func Outf

func Outf(format string, args ...any)

Outf prints to stdout with formatting.

func RenderDispatchResult

func RenderDispatchResult(res runner.Result) string

RenderDispatchResult renders a dispatch result (success/failure).

func Success

func Success(msg string, args ...any)

Success prints a green success message to stderr.

func Truncate

func Truncate(s string, maxLen int) string

Truncate truncates a string to the given maximum length.

func Warn

func Warn(msg string, args ...any)

Warn prints a yellow warning message to stderr.

func Wrap

func Wrap(s string, maxLen int) string

Wrap wraps text to the given width.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL