tui

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PathColor = "[light_blue]"
View Source
var (
	SpinnerStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("69"))
)
View Source
var TitleColor = "[magenta]"

Functions

func TheEndMessage

func TheEndMessage() tea.Cmd

Types

type ChoiceModel

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

func InitialChoiceModel

func InitialChoiceModel(title string, choices []string) ChoiceModel

func (ChoiceModel) Init

func (m ChoiceModel) Init() tea.Cmd

func (ChoiceModel) Picked

func (m ChoiceModel) Picked() string

func (ChoiceModel) Update

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

func (ChoiceModel) View

func (m ChoiceModel) View() string

type ErrorMessage

type ErrorMessage struct {
	Error string
}

type InputModel

type InputModel struct {
	TextInput textinput.Model
	// contains filtered or unexported fields
}

func InitialInputModel

func InitialInputModel(q string, ph string) InputModel

func (InputModel) Init

func (m InputModel) Init() tea.Cmd

func (InputModel) Update

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

func (InputModel) View

func (m InputModel) View() string
type MenuModel struct {
	Selected map[int]entity.GitFolder // which to-do items are Selected
	// contains filtered or unexported fields
}

func InitialMenuModel

func InitialMenuModel(question string, choices []entity.GitFolder) MenuModel
func (m MenuModel) Init() tea.Cmd
func (m MenuModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m MenuModel) View() string

type PrintMessage

type PrintMessage struct {
	Path string
}

type SpinnerModel

type SpinnerModel struct {
	Spinner spinner.Model

	Text  string
	Warns []string
	// contains filtered or unexported fields
}

func (SpinnerModel) Init

func (m SpinnerModel) Init() tea.Cmd

func (SpinnerModel) Update

func (m SpinnerModel) Update(msg2 tea.Msg) (tea.Model, tea.Cmd)

func (SpinnerModel) View

func (m SpinnerModel) View() string

View renders the spinner and instructions

Jump to

Keyboard shortcuts

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