tui

package
v0.0.0-...-daa2006 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Colors
	PrimaryColor   = lipgloss.Color("#7D56F4")
	SecondaryColor = lipgloss.Color("#04B575")
	ErrorColor     = lipgloss.Color("#FF4C4C")
	GrayColor      = lipgloss.Color("#626262")

	// Styles
	TitleStyle = lipgloss.NewStyle().
				Foreground(PrimaryColor).
				Bold(true).
				MarginLeft(1).
				MarginTop(1).
				MarginBottom(1)

	SeparatorStyle = lipgloss.NewStyle().
					Foreground(GrayColor).
					MarginBottom(1)

	CursorStyle = lipgloss.NewStyle().
				Foreground(PrimaryColor)

	SelectedStyle = lipgloss.NewStyle().
					Foreground(PrimaryColor).
					Bold(true)

	UnselectedStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("#ffffff"))

	UrlStyle = lipgloss.NewStyle().
				Foreground(GrayColor).
				Italic(true)

	SuccessStyle = lipgloss.NewStyle().
					Foreground(SecondaryColor).
					Bold(true)

	LabelStyle = lipgloss.NewStyle().
				Foreground(GrayColor).
				Width(12)

	PrimaryStyle = lipgloss.NewStyle().
					Foreground(PrimaryColor)

	ErrorStyle = lipgloss.NewStyle().
				Foreground(ErrorColor)

	GrayStyle = lipgloss.NewStyle().
				Foreground(GrayColor)
)

Functions

func RunInitWizard

func RunInitWizard() (map[string]string, bool, error)

Types

type DoneMsg

type DoneMsg error

type InitModel

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

func NewInitModel

func NewInitModel() InitModel

func (InitModel) GetResults

func (m InitModel) GetResults() map[string]string

func (InitModel) Init

func (m InitModel) Init() tea.Cmd

func (InitModel) IsConfirmed

func (m InitModel) IsConfirmed() bool

func (InitModel) Update

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

func (InitModel) View

func (m InitModel) View() string

type InitStep

type InitStep int
const (
	StepProjectName InitStep = iota
	StepDatabase
	StepFramework
	StepAuth
	StepLanguage
	StepSummary
	StepDone
)

type ProgressModel

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

func NewProgressModel

func NewProgressModel() ProgressModel

func (ProgressModel) Init

func (m ProgressModel) Init() tea.Cmd

func (ProgressModel) Update

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

func (ProgressModel) View

func (m ProgressModel) View() string

type ProgressMsg

type ProgressMsg string

Jump to

Keyboard shortcuts

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