cli

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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(url, text string) string

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 ListChats

func ListChats(dataDir string) error

ListChats loads the config and prints all configured chats.

func RemoveChat

func RemoveChat(dataDir, handle string) error

RemoveChat removes a chat by handle from the config, with confirmation.

func RunForeground

func RunForeground(image, dataDir string) error

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) Err

func (m AddChatModel) Err() error

Err returns any error that occurred.

func (AddChatModel) Init

func (m AddChatModel) Init() tea.Cmd

func (AddChatModel) Update

func (m AddChatModel) Update(msg tea.Msg) (tea.Model, 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

func NewRunModel(dataDir string, detach bool, image string) RunModel

NewRunModel creates a new run command model.

func (RunModel) Err

func (m RunModel) Err() error

Err returns any error that occurred.

func (RunModel) Init

func (m RunModel) Init() tea.Cmd

func (RunModel) NeedsForegroundRun

func (m RunModel) NeedsForegroundRun() bool

NeedsForegroundRun returns true if the model completed the pull phase and needs a foreground docker run (i.e., not detached).

func (RunModel) Update

func (m RunModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (RunModel) View

func (m RunModel) View() string

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) Update

func (m SetupModel) Update(msg tea.Msg) (tea.Model, 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) Err

func (m UpdateModel) Err() error

Err returns any error that occurred.

func (UpdateModel) Init

func (m UpdateModel) Init() tea.Cmd

func (UpdateModel) Update

func (m UpdateModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (UpdateModel) View

func (m UpdateModel) View() string

Jump to

Keyboard shortcuts

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