{"modulePath":"github.com/hookdeck/hookdeck-cli","version":"v1.9.1","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package ansi\n\n## Variables\n\n```go\nvar DisableColors = false\n```\nDisableColors disables all colors and other ANSI sequences.\n\n```go\nvar EnvironmentOverrideColors = true\n```\nEnvironmentOverrideColors overs coloring based on \\`CLICOLOR\\` and \\`CLICOLOR\\_FORCE\\`. Cf. [https://bixense.com/clicolors/](https://bixense.com/clicolors/)\n\n```go\nvar ForceColors = false\n```\nForceColors forces the use of colors and other ANSI sequences.\n\n## Functions\n\n```go\nfunc Bold(text string) string\n```\nBold returns bolded text if the writer supports colors\n\n```go\nfunc Color(w io.Writer) aurora.Aurora\n```\nColor returns an aurora.Aurora instance with colors enabled or disabled depending on whether the writer supports colors.\n\n```go\nfunc ColorizeJSON(json string, darkStyle bool, w io.Writer) string\n```\nColorizeJSON returns a colorized version of the input JSON, if the writer supports colors.\n\n```go\nfunc ColorizeStatus(status int) aurora.Value\n```\nColorizeStatus returns a colorized number for HTTP status code\n\n```go\nfunc Faint(text string) string\n```\nFaint returns slightly offset color text if the writer supports it\n\n```go\nfunc Italic(text string) string\n```\nItalic returns italicized text if the writer supports it.\n\n```go\nfunc Linkify(text, url string, w io.Writer) string\n```\nLinkify returns an ANSI escape sequence with an hyperlink, if the writer supports colors.\n\n```go\nfunc StartNewSpinner(msg string, w io.Writer) *spinner.Spinner\n```\nStartNewSpinner starts a new spinner with the given message. If the writer is not a terminal or doesn't support colors, it simply prints the message.\n\n```go\nfunc StartSpinner(s *spinner.Spinner, msg string, w io.Writer)\n```\nStartSpinner updates an existing spinner's message, and starts it if it was stopped\n\n```go\nfunc StopSpinner(s *spinner.Spinner, msg string, w io.Writer)\n```\nStopSpinner stops a spinner with the given message. If the writer is not a terminal or doesn't support colors, it simply prints the message.\n\n```go\nfunc StrikeThrough(text string) string\n```\nStrikeThrough returns struck though text if the writer supports colors\n\n```go\nfunc StripANSI(text string) string\n```\nStripANSI removes all ANSI escape sequences from a string\n\n","path":"github.com/hookdeck/hookdeck-cli/pkg/ansi","name":"ansi","synopsis":"","isRedistributable":true}
