prompt

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupListOfBreakingChanges

func SetupListOfBreakingChanges() list.Model

func SetupListOfScopes

func SetupListOfScopes() list.Model

func SetupListOfTypes

func SetupListOfTypes(typeNameOptions []model.CommitType) list.Model

Types

type LItem

type LItem string

func (LItem) FilterValue

func (i LItem) FilterValue() string

type LItemDelegate

type LItemDelegate struct{}

func (LItemDelegate) Height

func (d LItemDelegate) Height() int

func (LItemDelegate) Render

func (d LItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (LItemDelegate) Spacing

func (d LItemDelegate) Spacing() int

func (LItemDelegate) Update

func (d LItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type PromptCommit

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

func NewPromptCommit

func NewPromptCommit(typeNameOptions []model.CommitType, cmt *model.Commit) *PromptCommit

func (PromptCommit) Init

func (p PromptCommit) Init() tea.Cmd

func (PromptCommit) Update

func (p PromptCommit) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PromptCommit) UpdateBreakingChange

func (p PromptCommit) UpdateBreakingChange(msg tea.Msg) (tea.Model, tea.Cmd)

func (PromptCommit) UpdateDescription

func (p PromptCommit) UpdateDescription(msg tea.Msg) (tea.Model, tea.Cmd)

func (PromptCommit) UpdateScope

func (p PromptCommit) UpdateScope(msg tea.Msg) (tea.Model, tea.Cmd)

func (PromptCommit) UpdateType

func (p PromptCommit) UpdateType(msg tea.Msg) (tea.Model, tea.Cmd)

func (PromptCommit) View

func (p PromptCommit) View() string

func (PromptCommit) ViewBreakingChange

func (p PromptCommit) ViewBreakingChange() string

func (PromptCommit) ViewDescription

func (p PromptCommit) ViewDescription() string

func (PromptCommit) ViewScope

func (p PromptCommit) ViewScope() string

func (PromptCommit) ViewType

func (p PromptCommit) ViewType() string

Jump to

Keyboard shortcuts

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