tui

package
v0.0.0-...-1a4fc59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() (*zap.Logger, error)

func NewModel

func NewModel(tui_config TUIConfig, query_client *query.QueryBuilder) model

func Run

func Run() (tea.Model, error)

Types

type TUIConfig

type TUIConfig struct {
	SavedMessagesFile    string
	DiscoveryMessage     string
	APIKey               string // In environment variable OPENAI_API_KEY
	LoadMessagesFromFile bool
	Debug                bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL