ui

package
v0.0.0-...-bedebd1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataTitleStyle  = lipgloss.NewStyle().Background(lipgloss.Color("#15F5BA")).Foreground(lipgloss.Color("#F0F3FF")).Bold(true).Padding(0, 1, 0)
	DataErrorStyle  = lipgloss.NewStyle().Background(lipgloss.Color("#ff757f")).Bold(true).Padding(0, 0, 0)
	DataCursorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#836FFF"))
)
View Source
var Items = []Item{
	{
		Title: "Sqlite",
		Desc:  "Sqlite3 Driver",
		Flag:  "sqlite3",
	},
	{
		Title: "Postgres",
		Desc:  "Postgres Driver",
		Flag:  "postgres",
	},
}

Functions

func CreateErrorInputModel

func CreateErrorInputModel(err error) model

func InitializeConnModel

func InitializeConnModel(selection *SelectedUrl, program *program.Project) model

Types

type ChoiceModel

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

func InitializeChoiceModel

func InitializeChoiceModel(selection *SelectedLanguage, program *program.Project) ChoiceModel

func (ChoiceModel) Init

func (f ChoiceModel) Init() tea.Cmd

func (ChoiceModel) Update

func (f ChoiceModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ChoiceModel) View

func (f ChoiceModel) View() string

type DriverModel

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

func InitialModel

func InitialModel(selection *SelectedDriver, program *program.Project) DriverModel

func (DriverModel) Init

func (m DriverModel) Init() tea.Cmd

func (DriverModel) Update

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

func (DriverModel) View

func (m DriverModel) View() string

type FileModel

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

func InitializeFileModel

func InitializeFileModel(selection *SelectedFilePath, program *program.Project) FileModel

func (FileModel) Init

func (f FileModel) Init() tea.Cmd

func (FileModel) Update

func (f FileModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (FileModel) View

func (f FileModel) View() string

type Item

type Item struct {
	Flag, Title, Desc string
}

type ProgressModel

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

func InitializeProgressModel

func InitializeProgressModel(program *program.Project) 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 SelectedDriver

type SelectedDriver struct {
	Choice string
}

func (*SelectedDriver) Update

func (s *SelectedDriver) Update(value string)

type SelectedFilePath

type SelectedFilePath struct {
	Choice string
}

func (*SelectedFilePath) Update

func (s *SelectedFilePath) Update(value string)

type SelectedLanguage

type SelectedLanguage struct {
	Choice string
}

func (*SelectedLanguage) GetValue

func (s *SelectedLanguage) GetValue() string

func (*SelectedLanguage) Update

func (s *SelectedLanguage) Update(value string)

type SelectedUrl

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

func (*SelectedUrl) GetValue

func (s *SelectedUrl) GetValue() string

func (*SelectedUrl) Update

func (s *SelectedUrl) Update(value string)

Jump to

Keyboard shortcuts

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