chezmoibubbles

package
v2.60.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package chezmoibubbles provides text user interface components for chezmoi using github.com/charmbracelet/bubbletea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolInputModel

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

func NewBoolInputModel

func NewBoolInputModel(prompt string, defaultValue *bool) BoolInputModel

func (BoolInputModel) Canceled

func (m BoolInputModel) Canceled() bool

func (BoolInputModel) Init

func (m BoolInputModel) Init() tea.Cmd

func (BoolInputModel) Update

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

func (BoolInputModel) Value

func (m BoolInputModel) Value() bool

func (BoolInputModel) View

func (m BoolInputModel) View() string

type ChoiceInputModel

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

func NewChoiceInputModel

func NewChoiceInputModel(prompt string, choices []string, defaultValue *string) ChoiceInputModel

func (ChoiceInputModel) Canceled

func (m ChoiceInputModel) Canceled() bool

func (ChoiceInputModel) Init

func (m ChoiceInputModel) Init() tea.Cmd

func (ChoiceInputModel) Update

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

func (ChoiceInputModel) Value

func (m ChoiceInputModel) Value() string

func (ChoiceInputModel) View

func (m ChoiceInputModel) View() string

type IntInputModel

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

func NewIntInputModel

func NewIntInputModel(prompt string, defaultValue *int64) IntInputModel

func (IntInputModel) Canceled

func (m IntInputModel) Canceled() bool

func (IntInputModel) Init

func (m IntInputModel) Init() tea.Cmd

func (IntInputModel) Update

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

func (IntInputModel) Value

func (m IntInputModel) Value() int64

func (IntInputModel) View

func (m IntInputModel) View() string

type MultichoiceInputModel added in v2.60.0

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

func NewMultichoiceInputModel added in v2.60.0

func NewMultichoiceInputModel(prompt string, choices []string, defaultValue *[]string) MultichoiceInputModel

func (MultichoiceInputModel) Init added in v2.60.0

func (m MultichoiceInputModel) Init() tea.Cmd

func (MultichoiceInputModel) Update added in v2.60.0

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

func (MultichoiceInputModel) Value added in v2.60.0

func (m MultichoiceInputModel) Value() []string

func (MultichoiceInputModel) View added in v2.60.0

func (m MultichoiceInputModel) View() string

type PasswordInputModel

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

func NewPasswordInputModel

func NewPasswordInputModel(prompt, placeholder string) PasswordInputModel

func (PasswordInputModel) Canceled

func (m PasswordInputModel) Canceled() bool

func (PasswordInputModel) Init

func (m PasswordInputModel) Init() tea.Cmd

func (PasswordInputModel) Update

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

func (PasswordInputModel) Value

func (m PasswordInputModel) Value() string

func (PasswordInputModel) View

func (m PasswordInputModel) View() string

type StringInputModel

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

func NewStringInputModel

func NewStringInputModel(prompt string, defaultValue *string) StringInputModel

func (StringInputModel) Canceled

func (m StringInputModel) Canceled() bool

func (StringInputModel) Init

func (m StringInputModel) Init() tea.Cmd

func (StringInputModel) Update

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

func (StringInputModel) Value

func (m StringInputModel) Value() string

func (StringInputModel) View

func (m StringInputModel) View() string

Jump to

Keyboard shortcuts

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