commandprompt

package
v0.0.0-...-4c3a38e Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	TextInput textinput.Model

	InputAbort  key.Binding
	InputAccept key.Binding
	InputShow   key.Binding

	Prompt string
	// contains filtered or unexported fields
}

func New

func New(prefix string) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) PromptEditing

func (m Model) PromptEditing() tea.Msg

func (Model) PromptInput

func (m Model) PromptInput() tea.Msg

func (Model) SetValue

func (m Model) SetValue(str string) Model

func (Model) Update

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

func (Model) View

func (m Model) View() string

type PromptEditing

type PromptEditing bool

type PromptInput

type PromptInput string

Jump to

Keyboard shortcuts

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