Documentation ¶
Index ¶
- func BoldString(msg string) string
- func BoldStringf(msg string, a ...interface{}) string
- func DirectoryDisplayName(ctx *config.RunContext, name string) string
- func ErrorString(msg string) string
- func ErrorStringf(msg string, a ...interface{}) string
- func FaintString(msg string) string
- func FaintStringf(msg string, a ...interface{}) string
- func FormatIfNotCI(ctx *config.RunContext, formatFunc func(string) string, value string) string
- func Indent(s, indent string) string
- func LinkString(msg string) string
- func LinkStringf(msg string, a ...interface{}) string
- func PrimaryString(msg string) string
- func PrimaryStringf(msg string, a ...interface{}) string
- func PrintError(w io.Writer, msg string)
- func PrintErrorf(w io.Writer, msg string, a ...interface{})
- func PrintUnexpectedErrorStack(err error)
- func PrintUsage(cmd *cobra.Command)
- func ProjectDisplayName(ctx *config.RunContext, name string) string
- func SecondaryLinkString(msg string) string
- func SecondaryLinkStringf(msg string, a ...interface{}) string
- func StripColor(str string) string
- func SuccessString(msg string) string
- func SuccessStringf(msg string, a ...interface{}) string
- func UnderlineString(msg string) string
- func UnderlineStringf(msg string, a ...interface{}) string
- func WarningString(msg string) string
- func WarningStringf(msg string, a ...interface{}) string
- type WriteWarningFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoldString ¶
func BoldStringf ¶
func DirectoryDisplayName ¶ added in v0.10.36
func DirectoryDisplayName(ctx *config.RunContext, name string) string
func ErrorString ¶
func ErrorStringf ¶
func FaintString ¶
func FaintStringf ¶
func FormatIfNotCI ¶ added in v0.10.36
FormatIfNotCI runs the formatFunc if the current run context is not a CI run.
func LinkString ¶
func LinkStringf ¶
func PrimaryString ¶
func PrimaryStringf ¶
func PrintError ¶
func PrintErrorf ¶
func PrintUnexpectedErrorStack ¶ added in v0.9.17
func PrintUnexpectedErrorStack(err error)
PrintUnexpectedErrorStack prints a full stack trace of a fatal error.
func PrintUsage ¶ added in v0.9.9
func ProjectDisplayName ¶ added in v0.10.36
func ProjectDisplayName(ctx *config.RunContext, name string) string
func SecondaryLinkString ¶ added in v0.9.19
func SecondaryLinkStringf ¶ added in v0.9.19
func StripColor ¶
func SuccessString ¶
func SuccessStringf ¶
func UnderlineString ¶
func UnderlineStringf ¶
func WarningString ¶
func WarningStringf ¶
Types ¶
type WriteWarningFunc ¶ added in v0.9.22
type WriteWarningFunc func(msg string)
WriteWarningFunc defines an interface that writes the provided msg as a warning to an underlying writer.
Click to show internal directories.
Click to hide internal directories.