components

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpinner

func NewSpinner() spinner.Model

Types

type Confirm

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

func NewConfirm

func NewConfirm(prompt string) Confirm

func (Confirm) GetExited

func (c Confirm) GetExited() bool

func (Confirm) GetValue

func (c Confirm) GetValue() string

func (Confirm) Init

func (c Confirm) Init() tea.Cmd

func (Confirm) Update

func (c Confirm) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Confirm) View

func (c Confirm) View() string

type Input

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

func NewInput

func NewInput(prompt string, defaultValue string) Input

func (Input) GetExited

func (i Input) GetExited() bool

func (Input) GetValue

func (i Input) GetValue() string

func (Input) Init

func (i Input) Init() tea.Cmd

func (Input) Update

func (i Input) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Input) View

func (i Input) View() string

type Loading

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

func NewLoading

func NewLoading(loadingText string) Loading

func (Loading) GetErrorText added in v0.9.1

func (l Loading) GetErrorText() string

func (Loading) GetSuccessText added in v0.9.1

func (l Loading) GetSuccessText() string

func (Loading) Init

func (l Loading) Init() tea.Cmd

func (Loading) Update

func (l Loading) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Loading) View

func (l Loading) View() string

type Question

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

func NewQuestion

func NewQuestion(prompt string, options []string, defaultSelected []bool) Question

func (Question) GetExited

func (q Question) GetExited() bool

func (Question) GetSelected

func (q Question) GetSelected() []string

func (Question) Init

func (q Question) Init() tea.Cmd

func (Question) Update

func (q Question) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Question) View

func (q Question) View() string

type Selection

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

func NewSelection

func NewSelection(prompt string, options []string) Selection

func (Selection) GetExited

func (s Selection) GetExited() bool

func (Selection) GetValue

func (s Selection) GetValue() string

func (Selection) Init

func (s Selection) Init() tea.Cmd

func (Selection) Update

func (s Selection) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Selection) View

func (s Selection) View() string

Jump to

Keyboard shortcuts

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