ui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldString

func BoldString(msg string) string

func BoldStringf

func BoldStringf(msg string, a ...interface{}) string

func DirectoryDisplayName

func DirectoryDisplayName(ctx *settings.Session, name string) string

func ErrorString

func ErrorString(msg string) string

func ErrorStringf

func ErrorStringf(msg string, a ...interface{}) string

func FaintString

func FaintString(msg string) string

func FaintStringf

func FaintStringf(msg string, a ...interface{}) string

func FormatIfNotCI

func FormatIfNotCI(ctx *settings.Session, formatFunc func(string) string, value string) string

FormatIfNotCI runs the formatFunc if the current run context is not a CI run.

func Indent

func Indent(s, indent string) string

func LinkString

func LinkString(msg string) string

func LinkStringf

func LinkStringf(msg string, a ...interface{}) string

func PrimaryString

func PrimaryString(msg string) string

func PrimaryStringf

func PrimaryStringf(msg string, a ...interface{}) string

func PrintError

func PrintError(w io.Writer, msg string)

func PrintErrorf

func PrintErrorf(w io.Writer, msg string, a ...interface{})

func PrintUnexpectedErrorStack

func PrintUnexpectedErrorStack(err error)

PrintUnexpectedErrorStack prints a full stack trace of a fatal error.

func PrintUsage

func PrintUsage(cmd *cobra.Command)

func ProjectDisplayName

func ProjectDisplayName(ctx *settings.Session, name string) string

func SecondaryLinkString

func SecondaryLinkString(msg string) string

func SecondaryLinkStringf

func SecondaryLinkStringf(msg string, a ...interface{}) string

func StripColor

func StripColor(str string) string

func SuccessString

func SuccessString(msg string) string

func SuccessStringf

func SuccessStringf(msg string, a ...interface{}) string

func UnderlineString

func UnderlineString(msg string) string

func UnderlineStringf

func UnderlineStringf(msg string, a ...interface{}) string

func WarningString

func WarningString(msg string) string

func WarningStringf

func WarningStringf(msg string, a ...interface{}) string

Types

type WriteWarningFunc

type WriteWarningFunc func(msg string)

WriteWarningFunc defines an interface that writes the provided msg as a warning to an underlying writer.

Jump to

Keyboard shortcuts

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