Documentation
¶
Index ¶
- Variables
- type AnimatedLogo
- type GeminiInterface
- type Message
- type UIManager
- func (ui *UIManager) ClearScreen()
- func (ui *UIManager) CreateProgressBar(max int, description string) *progressbar.ProgressBar
- func (ui *UIManager) CreateSpinnerProgressBar(description string) *progressbar.ProgressBar
- func (ui *UIManager) DisplayKeyValue(data map[string]interface{})
- func (ui *UIManager) DisplayList(items []string, title string)
- func (ui *UIManager) DisplayMenu(title string, options []string) (int, error)
- func (ui *UIManager) DisplayTable(headers []string, rows [][]string)
- func (ui *UIManager) GetTerminalSize() (int, int)
- func (ui *UIManager) InteractiveConfirm(label string, defaultValue bool) (bool, error)
- func (ui *UIManager) InteractiveMultiSelect(label string, items []string) ([]string, error)
- func (ui *UIManager) InteractivePassword(label string) (string, error)
- func (ui *UIManager) InteractivePrompt(label string, defaultValue string) (string, error)
- func (ui *UIManager) InteractiveSelect(label string, items []string) (string, error)
- func (ui *UIManager) InteractiveWizard(title string, steps []WizardStep) (map[string]interface{}, error)
- func (ui *UIManager) IsTerminalInteractive() bool
- func (ui *UIManager) MoveCursor(x, y int)
- func (ui *UIManager) PressEnterToContinue(message string)
- func (ui *UIManager) PrintBanner()
- func (ui *UIManager) PrintError(format string, args ...interface{})
- func (ui *UIManager) PrintHeader(text string)
- func (ui *UIManager) PrintInfo(format string, args ...interface{})
- func (ui *UIManager) PrintSuccess(format string, args ...interface{})
- func (ui *UIManager) PrintVerbose(format string, args ...interface{})
- func (ui *UIManager) PrintWarning(format string, args ...interface{})
- func (ui *UIManager) RestoreCursor()
- func (ui *UIManager) SaveCursor()
- func (ui *UIManager) ShowSpinner(message string, duration time.Duration)
- type WizardStep
- type WizardStepType
Constants ¶
This section is empty.
Variables ¶
var ( InfoColor = color.New(color.FgCyan) SuccessColor = color.New(color.FgGreen) WarningColor = color.New(color.FgYellow) ErrorColor = color.New(color.FgRed) HeaderColor = color.New(color.FgBlue, color.Bold) )
Colors
Functions ¶
This section is empty.
Types ¶
type AnimatedLogo ¶
type AnimatedLogo struct {
// contains filtered or unexported fields
}
AnimatedLogo represents the animated ASCII art logo
func NewAnimatedLogo ¶
func NewAnimatedLogo() *AnimatedLogo
NewAnimatedLogo creates a new animated logo
type GeminiInterface ¶
type GeminiInterface struct {
// contains filtered or unexported fields
}
GeminiInterface represents the Gemini-style interface
func NewGeminiInterface ¶
func NewGeminiInterface(colorEnabled bool) *GeminiInterface
NewGeminiInterface creates a new Gemini interface
func (*GeminiInterface) ExportConversation ¶
func (g *GeminiInterface) ExportConversation(filename string) error
ExportConversation exports the conversation to a file
func (*GeminiInterface) GetConversationSummary ¶
func (g *GeminiInterface) GetConversationSummary() string
GetConversationSummary returns a summary of the current conversation
func (*GeminiInterface) LoadConversation ¶
func (g *GeminiInterface) LoadConversation(filename string) error
LoadConversation loads a conversation from a file
func (*GeminiInterface) Start ¶
func (g *GeminiInterface) Start() error
Start begins the Gemini interface
type Message ¶
type Message struct {
Role string `json:"role"`
Content string `json:"content"`
Timestamp time.Time `json:"timestamp"`
}
Message represents a conversation message
type UIManager ¶
type UIManager struct {
// contains filtered or unexported fields
}
UIManager manages user interface components
func NewUIManager ¶
NewUIManager creates a new UI manager
func (*UIManager) ClearScreen ¶
func (ui *UIManager) ClearScreen()
ClearScreen clears the terminal screen
func (*UIManager) CreateProgressBar ¶
func (ui *UIManager) CreateProgressBar(max int, description string) *progressbar.ProgressBar
CreateProgressBar creates a progress bar
func (*UIManager) CreateSpinnerProgressBar ¶
func (ui *UIManager) CreateSpinnerProgressBar(description string) *progressbar.ProgressBar
CreateSpinnerProgressBar creates a spinner progress bar for indeterminate progress
func (*UIManager) DisplayKeyValue ¶
DisplayKeyValue displays key-value pairs
func (*UIManager) DisplayList ¶
DisplayList displays a formatted list
func (*UIManager) DisplayMenu ¶
DisplayMenu displays a menu and returns the selected option
func (*UIManager) DisplayTable ¶
DisplayTable displays a formatted table
func (*UIManager) GetTerminalSize ¶
GetTerminalSize returns the terminal size
func (*UIManager) InteractiveConfirm ¶
InteractiveConfirm creates an interactive confirmation
func (*UIManager) InteractiveMultiSelect ¶
InteractiveMultiSelect creates an interactive multi-selection menu
func (*UIManager) InteractivePassword ¶
InteractivePassword creates an interactive password input
func (*UIManager) InteractivePrompt ¶
InteractivePrompt creates an interactive prompt
func (*UIManager) InteractiveSelect ¶
InteractiveSelect creates an interactive selection menu
func (*UIManager) InteractiveWizard ¶
func (ui *UIManager) InteractiveWizard(title string, steps []WizardStep) (map[string]interface{}, error)
InteractiveWizard creates an interactive wizard
func (*UIManager) IsTerminalInteractive ¶
IsTerminalInteractive checks if the terminal is interactive
func (*UIManager) MoveCursor ¶
MoveCursor moves the cursor to a specific position
func (*UIManager) PressEnterToContinue ¶
PressEnterToContinue waits for user to press Enter
func (*UIManager) PrintBanner ¶
func (ui *UIManager) PrintBanner()
PrintBanner prints the application banner
func (*UIManager) PrintError ¶
PrintError prints error message
func (*UIManager) PrintHeader ¶
PrintHeader prints a formatted header
func (*UIManager) PrintSuccess ¶
PrintSuccess prints success message
func (*UIManager) PrintVerbose ¶
PrintVerbose prints verbose message
func (*UIManager) PrintWarning ¶
PrintWarning prints warning message
func (*UIManager) RestoreCursor ¶
func (ui *UIManager) RestoreCursor()
RestoreCursor restores the saved cursor position
func (*UIManager) SaveCursor ¶
func (ui *UIManager) SaveCursor()
SaveCursor saves the current cursor position
type WizardStep ¶
type WizardStep struct {
Title string
Description string
Type WizardStepType
Key string
Prompt string
Default string
Options []string
Required bool
}
WizardStep represents a step in an interactive wizard
type WizardStepType ¶
type WizardStepType string
WizardStepType represents the type of wizard step
const ( WizardStepTypeInput WizardStepType = "input" WizardStepTypeSelect WizardStepType = "select" WizardStepTypeConfirm WizardStepType = "confirm" WizardStepTypePassword WizardStepType = "password" WizardStepTypeMultiSelect WizardStepType = "multiselect" )