Documentation ¶
Overview ¶
Package cli provides utilities for working with the CLI
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Red = color.New(color.FgRed).SprintFunc()
Red is a function which makes a string red, ie. Red("danger")
View Source
var Yellow = color.New(color.FgYellow).SprintFunc()
Yellow is a function which makes a string yellow, ie. Yellow("warning")
Functions ¶
func GetUserInput ¶
GetUserInput prompts the user to enter input. If the user types "exit", the CLI will exit with a success code. If the user doesn't type anything, this function returns an error.
func WriteAssistantMessage ¶
func WriteAssistantMessage(msg string)
WriteAssistantMessage prints a formatted message from the assistant
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.