Discover Packages
github.com/dpup/pls
internal
tui
package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Feb 24, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Execute handles the action from the TUI result.
FormatPrompt renders the full LLM prompt for --explain output.
PrintContext renders the LLM context (detected environment, project history,
global history) to stderr so that --verbose output doesn't interfere with
--json on stdout.
PrintToolLog renders the tool-use rounds from the LLM generation loop.
Action represents the user's chosen action from the TUI.
const (
ActionNone Action = iota
ActionRun
ActionCopy
ActionQuit
)
Model is the bubbletea model for the interactive TUI.
New creates a new TUI Model from a list of candidates.
Init implements tea.Model.
Update implements tea.Model.
View implements tea.Model.
Result holds the chosen action and the selected candidate.
RunTUI creates a bubbletea program, runs it, and returns the result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.