Documentation
¶
Overview ¶
Package cli provides consistent color formatting for CLI output across all tools in the monorepo.
Index ¶
- func Error(s string) string
- func Errorf(format string, a ...any) string
- func Header(s string) string
- func Headerf(format string, a ...any) string
- func Key(s string) string
- func Keyf(format string, a ...any) string
- func Muted(s string) string
- func Mutedf(format string, a ...any) string
- func NewTable(output io.Writer) table.Writer
- func Path(s string) string
- func Pathf(format string, a ...any) string
- func PrintError(s string)
- func PrintHeader(s string)
- func PrintSuccess(s string)
- func PrintWarning(s string)
- func Secondary(s string) string
- func Secondaryf(format string, a ...any) string
- func Success(s string) string
- func Successf(format string, a ...any) string
- func Type(s string) string
- func Typef(format string, a ...any) string
- func Value(v any) string
- func Valuef(format string, a ...any) string
- func Warning(s string) string
- func Warningf(format string, a ...any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTable ¶
NewTable returns a go-pretty table.Writer configured with the monorepo defaults. It mirrors output to stdout, uses the light style, separates rows, and hides the outer border.
func PrintSuccess ¶
func PrintSuccess(s string)
PrintSuccess prints a green-colored message to stdout.
func PrintWarning ¶
func PrintWarning(s string)
PrintWarning prints a yellow-colored message to stdout.
func Secondaryf ¶
Secondaryf returns a formatted blue-colored string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.