Help us shape the future of Go! Take the 2026 Go Developer Survey

ui

package
v0.0.0-...-fdf23f2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectGitignoreMode

func SelectGitignoreMode() (string, error)

SelectGitignoreMode runs the interactive gitignore mode selector and returns the selected mode ID

func SelectMCPs

func SelectMCPs(availableMCPs []models.MCPTemplate) ([]models.MCPTemplate, error)

SelectMCPs runs the interactive MCP selector and returns the selected MCPs

func SelectTemplate

func SelectTemplate() (string, error)

SelectTemplate runs the interactive template selector and returns the selected template ID

Types

type GitignoreModeOption

type GitignoreModeOption struct {
	ID          string
	Name        string
	Description string
}

GitignoreModeOption represents a gitignore mode choice

type GitignoreModeSelectorModel

type GitignoreModeSelectorModel struct {
	// contains filtered or unexported fields
}

GitignoreModeSelectorModel represents the state of the gitignore mode selector

func NewGitignoreModeSelectorModel

func NewGitignoreModeSelectorModel() GitignoreModeSelectorModel

NewGitignoreModeSelectorModel creates a new gitignore mode selector model

func (GitignoreModeSelectorModel) GetSelectedMode

func (m GitignoreModeSelectorModel) GetSelectedMode() string

GetSelectedMode returns the selected gitignore mode ID

func (GitignoreModeSelectorModel) Init

Init is called when the program starts

func (GitignoreModeSelectorModel) IsQuitting

func (m GitignoreModeSelectorModel) IsQuitting() bool

IsQuitting returns whether the user cancelled the selection

func (GitignoreModeSelectorModel) Update

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

Update handles input events and updates the model state

func (GitignoreModeSelectorModel) View

View renders the gitignore mode selector UI

type MCPSelectorModel

type MCPSelectorModel struct {
	// contains filtered or unexported fields
}

MCPSelectorModel represents the state of the MCP selector

func NewMCPSelectorModel

func NewMCPSelectorModel(mcps []models.MCPTemplate) MCPSelectorModel

NewMCPSelectorModel creates a new MCP selector model

func (MCPSelectorModel) GetSelectedMCPs

func (m MCPSelectorModel) GetSelectedMCPs() []models.MCPTemplate

GetSelectedMCPs returns the list of selected MCP templates

func (MCPSelectorModel) Init

func (m MCPSelectorModel) Init() tea.Cmd

Init is called when the program starts

func (MCPSelectorModel) IsConfirmed

func (m MCPSelectorModel) IsConfirmed() bool

IsConfirmed returns whether the user confirmed their selection

func (MCPSelectorModel) IsQuitting

func (m MCPSelectorModel) IsQuitting() bool

IsQuitting returns whether the user cancelled the selection

func (MCPSelectorModel) Update

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

Update handles input events and updates the model state

func (MCPSelectorModel) View

func (m MCPSelectorModel) View() string

View renders the MCP selector UI

type TemplateSelectorModel

type TemplateSelectorModel struct {
	// contains filtered or unexported fields
}

TemplateSelectorModel represents the state of the template selector

func NewTemplateSelectorModel

func NewTemplateSelectorModel() TemplateSelectorModel

NewTemplateSelectorModel creates a new template selector model

func (TemplateSelectorModel) GetSelectedTemplate

func (m TemplateSelectorModel) GetSelectedTemplate() string

GetSelectedTemplate returns the selected template ID

func (TemplateSelectorModel) Init

func (m TemplateSelectorModel) Init() tea.Cmd

Init is called when the program starts

func (TemplateSelectorModel) IsQuitting

func (m TemplateSelectorModel) IsQuitting() bool

IsQuitting returns whether the user cancelled the selection

func (TemplateSelectorModel) Update

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

Update handles input events and updates the model state

func (TemplateSelectorModel) View

func (m TemplateSelectorModel) View() string

View renders the template selector UI

Jump to

Keyboard shortcuts

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