Documentation
¶
Index ¶
- func Fail(a any)
- func FormatClickableURL(url string) string
- func FormatClickableUUID(uuid string) string
- func FormatClickableUUIDWithBackground(uuid string, bgColor *color.Color) string
- func FormatColoredAppName(appName string) string
- func FormatPRNumber(prNumber, branchName string) string
- func FormatReadyStatus(ready bool) string
- func FormattedEnvironment(env *types.Environment) [][]string
- func FormattedEnvironmentWithDuplicateColors(env *types.Environment, duplicateColors map[string]*color.Color) [][]string
- func GenerateDuplicateColors(duplicateUUIDs map[string]bool) map[string]*color.Color
- func GetDuplicateUUIDs(envs []types.Environment) map[string]bool
- func Print(a any)
- func Println(a any)
- func RenderTable(out io.Writer, columns []string, data [][]string)
- type Display
- type Spinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatClickableURL ¶ added in v1.8.1
FormatClickableURL formats a URL as a clickable terminal link using OSC 8 escape sequences Falls back to underlined turquoise URL if terminal doesn't support OSC 8
func FormatClickableUUID ¶ added in v1.8.1
FormatClickableUUID formats a UUID as a clickable link to shipyard.build details page Falls back to plain UUID if terminal doesn't support OSC 8
func FormatClickableUUIDWithBackground ¶ added in v1.8.1
FormatClickableUUIDWithBackground formats a UUID with background color for duplicates
func FormatColoredAppName ¶ added in v1.8.1
FormatColoredAppName assigns a consistent color to app names based on hash
func FormatPRNumber ¶ added in v1.8.1
FormatPRNumber formats PR numbers, using branch name for null values
func FormatReadyStatus ¶ added in v1.8.1
FormatReadyStatus formats a boolean Ready status with colors
func FormattedEnvironment ¶
func FormattedEnvironment(env *types.Environment) [][]string
FormattedEnvironment takes an environment, extracts data from it, and prepares it to be in tabular format. If the environment value is nil, the program will panic.
func FormattedEnvironmentWithDuplicateColors ¶ added in v1.8.1
func FormattedEnvironmentWithDuplicateColors(env *types.Environment, duplicateColors map[string]*color.Color) [][]string
FormattedEnvironmentWithDuplicateColors takes an environment and duplicate color mapping, extracts data from it, and prepares it to be in tabular format with background colors for duplicate UUIDs.
func GenerateDuplicateColors ¶ added in v1.8.1
GenerateDuplicateColors creates consistent background colors for duplicate UUIDs
func GetDuplicateUUIDs ¶ added in v1.8.1
func GetDuplicateUUIDs(envs []types.Environment) map[string]bool
GetDuplicateUUIDs identifies UUIDs that appear more than once in the final table
Types ¶
type Spinner ¶ added in v1.8.0
type Spinner struct {
// contains filtered or unexported fields
}
Spinner represents a terminal spinner animation
func NewSpinner ¶ added in v1.8.0
NewSpinner creates a new spinner with the given message
func (*Spinner) SetMessage ¶ added in v1.8.0
SetMessage updates the spinner message while it's running