Documentation ¶
Index ¶
- Constants
- Variables
- func Error(message string, err error)
- func Info(message string)
- func PrintChat(name, message string)
- func PrintChatDebug(name, message string)
- func PromptChatInput() string
- func PromptConfirm(prompt string) bool
- func PromptInput(prompt string) string
- func Warn(message string)
- func Welcome(title, message string)
- type Theme
Constants ¶
View Source
const ( User = "USER" AI = "AI" System = "SYSTEM" Tool = "TOOL" API = "API" Module = "MODULE" App = "APP" )
Variables ¶
View Source
var DarkTheme = Theme{ Username: color.New(color.FgRed), Message: color.New(color.FgBlue), Useful: color.New(color.FgBlack), AI: color.New(color.FgGreen), User: color.New(color.FgMagenta), Info: color.New(color.FgBlack, color.Bold), Error: color.New(color.FgHiRed, color.Bold), Warn: color.New(color.FgHiMagenta, color.Bold), App: color.New(color.FgBlack), AppBold: color.New(color.FgGreen, color.Bold), }
View Source
var LightTheme = Theme{ Username: color.New(color.FgRed), Message: color.New(color.FgBlue), Useful: color.New(color.FgWhite), AI: color.New(color.FgGreen), User: color.New(color.FgYellow), Info: color.New(color.FgWhite, color.Bold), Error: color.New(color.FgHiRed, color.Bold), Warn: color.New(color.FgHiYellow, color.Bold), App: color.New(color.FgWhite), AppBold: color.New(color.FgGreen, color.Bold), }
Functions ¶
func PrintChatDebug ¶
func PrintChatDebug(name, message string)
func PromptChatInput ¶
func PromptChatInput() string
func PromptConfirm ¶
func PromptInput ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.