tui

package
v0.0.0-...-d9dc390 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 48 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	StateAPIMethodSelect = iota
	StateAPIURLInput
	StateAPIBodyInput
	StateAPISending
	StateAPIResponseView
)
View Source
const (
	StateAutoUpdateMenu = iota
	StateAutoUpdateLanguages
	StateAutoUpdateKeys
	StateAutoUpdateCheck
	StateAutoUpdateSummarizing
	StateAutoUpdateReview
	StateAutoUpdateInstalling
	StateAutoUpdateKeyInput
	StateAutoUpdateDone
	StateAutoUpdateHelp
)
View Source
const (
	StateBPMenu = iota
	StateBPSnippets
	StateBPLanguage
	StateBPTemplates
	StateBPArchList
	StateBPSuccess
	StateBPSaveTemplate
	StateBPSelectProject
	StateBPLoadTemplate
	StateBPInputPath
	StateBPShowResult
	StateBPHelp
)
View Source
const (
	StateBonusMenu = iota
	StateBonusTaskRunner
	StateBonusSmartFile
	StateBonusSnippets
	StateBonusProjectDash
	StateBonusAIAssistant
	StateBonusTimeMachinePicker
	StateBonusTimeMachine
	StateBonusHelp
)
View Source
const (
	StateDevServerPathInput = iota
	StateDevServerDetecting
	StateDevServerReady
	StateDevServerRunning
	StateDevServerConfirmation
	StateDevServerStopping
	StateDevServerHelp
)
View Source
const (
	StateDockerList = iota
	StateDockerLogs
	StateDockerError
)
View Source
const (
	LangEnglish  = "en"
	LangSpanish  = "es"
	LangHindi    = "hi"
	LangFrench   = "fr"
	LangGerman   = "de"
	LangChinese  = "zh"
	LangJapanese = "ja"

	Backtick = "`"
)
View Source
const (
	ProjectToolsHelp = `` /* 1757-byte string literal not displayed */

	VenvWizardHelp = `` /* 2344-byte string literal not displayed */

	DevServerHelp = `` /* 1916-byte string literal not displayed */

	FileManagerHelp = `` /* 1436-byte string literal not displayed */

	EditorHelp = `` /* 1546-byte string literal not displayed */

	AIchatHelp = `` /* 1082-byte string literal not displayed */

	SettingsHelp = `` /* 1387-byte string literal not displayed */

	BoilerplateHelp = `` /* 1632-byte string literal not displayed */

	BonusFeaturesHelp = `` /* 1933-byte string literal not displayed */

	TaskRunnerHelp = `` /* 1519-byte string literal not displayed */

	AutoUpdateHelp = `` /* 1870-byte string literal not displayed */

	SmartFileHelp = `` /* 1452-byte string literal not displayed */

	SnippetLibraryHelp = `` /* 1423-byte string literal not displayed */

	AIAssistantHelp = `` /* 1620-byte string literal not displayed */

	TimeMachineHelp = `` /* 2161-byte string literal not displayed */

)
View Source
const (
	StateMenu = iota
	StateProjectList
	StateSelectTemplate
	StateNameProject
	StateSelectPath
	StateCreating
	StateSuccess
	StateBackupInput
	StateCleanupPrompt
	StateHistoryList
	StateConfirmDelete
	StateProjectHelp

	StateVenvWizard
	StateDevServer
	StateBoilerplate
	StateBonus
)
View Source
const (
	StateDashboard = iota
	StateProject
	StateFileManager
	StateChat
	StateEditor
	StateAutoUpdate
	StateDocs
	StateDocker
	StateAPIClient
)
View Source
const (
	StateVenvList = iota
	StateVenvActionMenu
	StateVenvCloneInput
	StateVenvCreateInput
	StateVenvSyncInput
	StateVenvScanInput
	StateVenvDeleteConfirm
	StateVenvProcessing
	StateVenvCreating
	StateVenvSuccess
	StateVenvHelp
)

Variables

View Source
var (
	AppBorderStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(colorPurple).
					Padding(1, 2)

	LeftPaneStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(colorPurple).
					Padding(1, 1)

	RightPaneStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(colorCyan).
					Padding(1, 2)

	HeaderBadgeStyle = lipgloss.NewStyle().
						Background(colorGreen).
						Foreground(lipgloss.Color("#282a36")).
						Bold(true).
						Padding(0, 1)

	WizardCardStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(colorPurple).
					Padding(1, 2).
					Width(65).
					Align(lipgloss.Center)

	StepStyle = lipgloss.NewStyle().
				Foreground(colorPink).
				Bold(true).
				MarginBottom(1)

	PreviewHeaderStyle = lipgloss.NewStyle().
						Background(colorCyan).
						Foreground(lipgloss.Color("#282a36")).
						Bold(true).
						Padding(0, 2)
)
View Source
var ChatCmd = &cobra.Command{
	Use:   "chat",
	Short: "Start AI chat session (TUI)",
	Run: func(cmd *cobra.Command, args []string) {
		RunChat()
	},
}
View Source
var EditorCmd = &cobra.Command{
	Use:   "editor [file]",
	Short: "Launch the built-in multi-language IDE",
	Args:  cobra.MaximumNArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		filename := ""
		if len(args) > 0 {
			filename = args[0]
		}
		RunEditor(filename)
	},
}

Functions

func RenderHelp

func RenderHelp(content string, width, height int) string

func RenderStatusBar

func RenderStatusBar(width int) string

func RunChat

func RunChat()

func RunDashboard

func RunDashboard() string

func RunDevServer

func RunDevServer(path string, opts ...tea.ProgramOption) error

func RunEditor

func RunEditor(filename string)

func RunFileManager

func RunFileManager(path string, opts ...tea.ProgramOption) error

func RunProjectDashboard

func RunProjectDashboard()

func RunRoot

func RunRoot()

func RunSettings

func RunSettings()

func RunTimeMachine

func RunTimeMachine(repoPath, filePath string) error

Types

type AIAssistantModel

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

func NewAIAssistantModel

func NewAIAssistantModel() AIAssistantModel

func (AIAssistantModel) Init

func (m AIAssistantModel) Init() tea.Cmd

func (AIAssistantModel) Update

func (m AIAssistantModel) Update(msg tea.Msg) (AIAssistantModel, tea.Cmd)

func (AIAssistantModel) View

func (m AIAssistantModel) View() string

type APIClientModel

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

func NewAPIClientModel

func NewAPIClientModel() APIClientModel

func (APIClientModel) Init

func (m APIClientModel) Init() tea.Cmd

func (APIClientModel) Update

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

func (APIClientModel) View

func (m APIClientModel) View() string

type AutoUpdateModel

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

func NewAutoUpdateModel

func NewAutoUpdateModel() AutoUpdateModel

func (AutoUpdateModel) Init

func (m AutoUpdateModel) Init() tea.Cmd

func (AutoUpdateModel) Update

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

func (AutoUpdateModel) View

func (m AutoUpdateModel) View() string

type BackMsg

type BackMsg struct{}

type BoilerplateBackMsg

type BoilerplateBackMsg struct{}

type BoilerplateDashboardModel

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

func NewBoilerplateDashboardModel

func NewBoilerplateDashboardModel(workspace string) BoilerplateDashboardModel

func (BoilerplateDashboardModel) Init

func (BoilerplateDashboardModel) Update

func (BoilerplateDashboardModel) View

type BoilerplateItemType

type BoilerplateItemType int
const (
	ItemTypeNone BoilerplateItemType = iota
	ItemTypeSnippet
	ItemTypeArchitecture
)

type BonusBackMsg

type BonusBackMsg struct{}

type BonusDashboardModel

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

func NewBonusDashboardModel

func NewBonusDashboardModel(workspace string) BonusDashboardModel

func (BonusDashboardModel) Init

func (m BonusDashboardModel) Init() tea.Cmd

func (BonusDashboardModel) Update

func (BonusDashboardModel) View

func (m BonusDashboardModel) View() string

type ChatModel

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

func NewChatModel

func NewChatModel() ChatModel

func (ChatModel) Init

func (m ChatModel) Init() tea.Cmd

func (ChatModel) Update

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

func (ChatModel) View

func (m ChatModel) View() string

type DashboardModel

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

func NewDashboard

func NewDashboard() DashboardModel

func (DashboardModel) Init

func (m DashboardModel) Init() tea.Cmd

func (DashboardModel) Update

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

func (DashboardModel) View

func (m DashboardModel) View() string

type DevServerBackMsg

type DevServerBackMsg struct{}

type DevServerDashboardModel

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

func NewDevServerDashboardModel

func NewDevServerDashboardModel(projectPath string) DevServerDashboardModel

func (DevServerDashboardModel) Init

func (m DevServerDashboardModel) Init() tea.Cmd

func (DevServerDashboardModel) Update

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

func (DevServerDashboardModel) View

type DockerDashboardModel

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

func NewDockerDashboardModel

func NewDockerDashboardModel() DockerDashboardModel

func (DockerDashboardModel) Init

func (m DockerDashboardModel) Init() tea.Cmd

func (DockerDashboardModel) Update

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

func (DockerDashboardModel) View

func (m DockerDashboardModel) View() string

type DocsModel

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

func NewDocsModel

func NewDocsModel() DocsModel

func (DocsModel) Init

func (m DocsModel) Init() tea.Cmd

func (DocsModel) Update

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

func (DocsModel) View

func (m DocsModel) View() string

type FileManagerModel

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

func NewFileManagerModel

func NewFileManagerModel(startPath string) FileManagerModel

func (FileManagerModel) Init

func (m FileManagerModel) Init() tea.Cmd

func (FileManagerModel) Update

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

func (FileManagerModel) View

func (m FileManagerModel) View() string

type ProjectDashModel

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

func NewProjectDashModel

func NewProjectDashModel(workspace string) ProjectDashModel

func (ProjectDashModel) Init

func (m ProjectDashModel) Init() tea.Cmd

func (ProjectDashModel) Update

func (m ProjectDashModel) Update(msg tea.Msg) (ProjectDashModel, tea.Cmd)

func (ProjectDashModel) View

func (m ProjectDashModel) View() string

type ProjectDashboardModel

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

func NewProjectDashboardModel

func NewProjectDashboardModel() ProjectDashboardModel

func (ProjectDashboardModel) Init

func (m ProjectDashboardModel) Init() tea.Cmd

func (ProjectDashboardModel) Update

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

func (ProjectDashboardModel) View

func (m ProjectDashboardModel) View() string

type RootModel

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

func NewRootModel

func NewRootModel() RootModel

func (RootModel) Init

func (m RootModel) Init() tea.Cmd

func (RootModel) Update

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

func (RootModel) View

func (m RootModel) View() string

type SettingsModel

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

func NewSettingsModel

func NewSettingsModel() SettingsModel

func (SettingsModel) Init

func (m SettingsModel) Init() tea.Cmd

func (SettingsModel) Update

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

func (SettingsModel) View

func (m SettingsModel) View() string

type SmartFileModel

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

func NewSmartFileModel

func NewSmartFileModel(workspace string) SmartFileModel

func (SmartFileModel) Init

func (m SmartFileModel) Init() tea.Cmd

func (SmartFileModel) Update

func (m SmartFileModel) Update(msg tea.Msg) (SmartFileModel, tea.Cmd)

func (SmartFileModel) View

func (m SmartFileModel) View() string

type SnippetsModel

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

func NewSnippetsModel

func NewSnippetsModel() SnippetsModel

func (SnippetsModel) Init

func (m SnippetsModel) Init() tea.Cmd

func (SnippetsModel) Update

func (m SnippetsModel) Update(msg tea.Msg) (SnippetsModel, tea.Cmd)

func (SnippetsModel) View

func (m SnippetsModel) View() string

type StandaloneWrapper

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

func Wrap

func Wrap(m tea.Model) StandaloneWrapper

func (StandaloneWrapper) Init

func (m StandaloneWrapper) Init() tea.Cmd

func (StandaloneWrapper) Update

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

func (StandaloneWrapper) View

func (m StandaloneWrapper) View() string

type SubFeatureBackMsg

type SubFeatureBackMsg struct{}

type SwitchViewMsg

type SwitchViewMsg struct {
	TargetState int
	Args        interface{}
}

type TaskRunnerModel

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

func NewTaskRunnerModel

func NewTaskRunnerModel(workspace string) TaskRunnerModel

func (TaskRunnerModel) Init

func (m TaskRunnerModel) Init() tea.Cmd

func (TaskRunnerModel) Update

func (m TaskRunnerModel) Update(msg tea.Msg) (TaskRunnerModel, tea.Cmd)

func (TaskRunnerModel) View

func (m TaskRunnerModel) View() string

type TimeMachineModel

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

func NewTimeMachineModel

func NewTimeMachineModel(repoPath, filePath string) (*TimeMachineModel, error)

func (*TimeMachineModel) Init

func (m *TimeMachineModel) Init() tea.Cmd

func (*TimeMachineModel) Update

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

func (*TimeMachineModel) View

func (m *TimeMachineModel) View() string

type UpdateCheckMsg

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

type UpdateCompleteMsg

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

type UpdaterModel

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

func NewUpdaterModel

func NewUpdaterModel() UpdaterModel

func (UpdaterModel) Init

func (m UpdaterModel) Init() tea.Cmd

func (UpdaterModel) Update

func (m UpdaterModel) Update(msg tea.Msg) (UpdaterModel, tea.Cmd)

func (UpdaterModel) View

func (m UpdaterModel) View() string

type VenvBackMsg

type VenvBackMsg struct{}

type VenvDashboardModel

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

func NewVenvDashboardModel

func NewVenvDashboardModel() VenvDashboardModel

func (VenvDashboardModel) Init

func (m VenvDashboardModel) Init() tea.Cmd

func (VenvDashboardModel) Update

func (VenvDashboardModel) View

func (m VenvDashboardModel) View() string

Jump to

Keyboard shortcuts

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