Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Title = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("6")) Subtitle = lipgloss.NewStyle().Faint(true) Success = lipgloss.NewStyle().Foreground(lipgloss.Color("2")) Warning = lipgloss.NewStyle().Foreground(lipgloss.Color("3")) Error = lipgloss.NewStyle().Foreground(lipgloss.Color("1")) Highlight = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("6")) Prompt = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("6")) Dim = lipgloss.NewStyle().Faint(true) )
Functions ¶
func Link ¶
Link formats a clickable hyperlink using the OSC 8 escape sequence. Terminals that support it render the text as a clickable link. Terminals that don't gracefully fall back to showing just the text.
func RemoveChat ¶
RemoveChat removes a chat by handle from the config, with confirmation.
func RunForeground ¶
RunForeground executes docker run in the foreground, taking over the terminal.
Types ¶
type AddChatModel ¶
type AddChatModel struct {
// contains filtered or unexported fields
}
AddChatModel is the Bubbletea model for the add-chat command.
func NewAddChatModel ¶
func NewAddChatModel(dataDir string) AddChatModel
NewAddChatModel creates a new add-chat model, loading the existing config.
func (AddChatModel) Init ¶
func (m AddChatModel) Init() tea.Cmd
func (AddChatModel) View ¶
func (m AddChatModel) View() string
type RunModel ¶
type RunModel struct {
// contains filtered or unexported fields
}
RunModel is the Bubbletea model for the `run` command.
func NewRunModel ¶
NewRunModel creates a new run command model.
func (RunModel) NeedsForegroundRun ¶
NeedsForegroundRun returns true if the model completed the pull phase and needs a foreground docker run (i.e., not detached).
type SetupModel ¶
type SetupModel struct {
// contains filtered or unexported fields
}
SetupModel is the Bubbletea model for the setup wizard.
func NewSetupModel ¶
func NewSetupModel(dataDir string) SetupModel
NewSetupModel creates a new setup wizard model.
func (SetupModel) Init ¶
func (m SetupModel) Init() tea.Cmd
func (SetupModel) View ¶
func (m SetupModel) View() string
type UpdateModel ¶
type UpdateModel struct {
// contains filtered or unexported fields
}
UpdateModel is the Bubbletea model for the `update` command.
func NewUpdateModel ¶
func NewUpdateModel(dataDir string, restart bool, image string) UpdateModel
NewUpdateModel creates a new update command model.
func (UpdateModel) Init ¶
func (m UpdateModel) Init() tea.Cmd
func (UpdateModel) View ¶
func (m UpdateModel) View() string