{"modulePath":"github.com/coder/wush","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cliui\n\n## Variables\n\n```go\nvar (\n\tGreen   = Color(\"#04B575\")\n\tRed     = Color(\"#ED567A\")\n\tFuchsia = Color(\"#EE6FF8\")\n\tYellow  = Color(\"#ECFD65\")\n\tBlue    = Color(\"#5000ff\")\n)\n```\n\n```go\nvar Canceled = xerrors.New(\"canceled\")\n```\n\n## Functions\n\n```go\nfunc Bold(s string) string\n```\nBold returns a formatter that renders text in bold if the terminal supports it.\n\n```go\nfunc BoldFmt() pretty.Formatter\n```\nBoldFmt returns a formatter that renders text in bold if the terminal supports it.\n\n```go\nfunc Code(s string) string\n```\nCode formats code for display.\n\n```go\nfunc Color(s string) termenv.Color\n```\nColor returns a color for the given string.\n\n```go\nfunc Field(s string) string\n```\nField formats a field for display.\n\n```go\nfunc Keyword(s string) string\n```\nKeyword formats a keyword for display.\n\n```go\nfunc Placeholder(s string) string\n```\nPlaceholder formats a placeholder for display.\n\n```go\nfunc Timestamp(t time.Time) string\n```\nTimestamp formats a timestamp for display.\n\n```go\nfunc ValidateNotEmpty(s string) error\n```\nValidateNotEmpty is a helper function to disallow empty inputs!\n\n```go\nfunc Wrap(s string) string\n```\nWrap prevents the text from overflowing the terminal.\n\n## Types\n\n```go\ntype Styles struct {\n\tCode,\n\tDateTimeStamp,\n\tError,\n\tField,\n\tKeyword,\n\tPlaceholder,\n\tPrompt,\n\tFocusedPrompt,\n\tFuchsia,\n\tWarn,\n\tWrap,\n\tDisabled,\n\tEnabled pretty.Style\n}\n```\n\n```go\nvar DefaultStyles Styles\n```\nDefaultStyles compose visual elements of the UI.\n\n","path":"github.com/coder/wush/cliui","name":"cliui","synopsis":"","isRedistributable":true}
