minor
This commit is contained in:
parent
25ed7d3f8d
commit
1312bf10c0
1 changed files with 2 additions and 4 deletions
6
tui.go
6
tui.go
|
|
@ -69,6 +69,7 @@ func initialModel(config *Config, query string, verbose bool) model {
|
||||||
|
|
||||||
l := list.New([]list.Item{}, delegate, width, 20)
|
l := list.New([]list.Item{}, delegate, width, 20)
|
||||||
l.SetShowTitle(false)
|
l.SetShowTitle(false)
|
||||||
|
l.SetShowHelp(false)
|
||||||
l.SetShowStatusBar(false)
|
l.SetShowStatusBar(false)
|
||||||
l.SetFilteringEnabled(false)
|
l.SetFilteringEnabled(false)
|
||||||
l.Title = "" // Set empty title
|
l.Title = "" // Set empty title
|
||||||
|
|
@ -85,7 +86,7 @@ func initialModel(config *Config, query string, verbose bool) model {
|
||||||
query: query,
|
query: query,
|
||||||
verbose: verbose,
|
verbose: verbose,
|
||||||
loading: true,
|
loading: true,
|
||||||
status: "Initializing...",
|
status: "Querying",
|
||||||
spinner: sp,
|
spinner: sp,
|
||||||
list: l,
|
list: l,
|
||||||
}
|
}
|
||||||
|
|
@ -114,10 +115,7 @@ func (m model) Init() tea.Cmd {
|
||||||
return tea.Batch(
|
return tea.Batch(
|
||||||
m.spinner.Tick,
|
m.spinner.Tick,
|
||||||
func() tea.Msg {
|
func() tea.Msg {
|
||||||
m.status = "Building prompt..."
|
|
||||||
prompt := buildPrompt(m.config, m.query)
|
prompt := buildPrompt(m.config, m.query)
|
||||||
|
|
||||||
m.status = "Querying LLM..."
|
|
||||||
commands, err := queryLLM(m.config, prompt, m.verbose)
|
commands, err := queryLLM(m.config, prompt, m.verbose)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue