picker

package
v0.0.0-...-0356953 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DIR = "."

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitModel

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

func GetCommitModel

func GetCommitModel(prompt, prefix string) CommitModel

func (CommitModel) CommitCmd

func (cm CommitModel) CommitCmd() tea.Cmd

func (CommitModel) Init

func (cm CommitModel) Init() tea.Cmd

func (CommitModel) Message

func (cm CommitModel) Message() string

func (CommitModel) Update

func (cm CommitModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (CommitModel) View

func (cm CommitModel) View() string

type PickModel

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

func GetPickerModel

func GetPickerModel() PickModel

func (PickModel) Init

func (pm PickModel) Init() tea.Cmd

func (PickModel) Update

func (pm PickModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PickModel) View

func (pm PickModel) View() string

type Picker

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

func (Picker) Len

func (p Picker) Len() int

func (Picker) Pick

func (p Picker) Pick(idx int) error

func (Picker) UnPick

func (p Picker) UnPick(idx int) error

Jump to

Keyboard shortcuts

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