Skip to main content

API

parserinput

import "github.com/aschey/bubbleprompt/input/parserinput"

Index

type Model

type Model[T any, G any] struct {
// contains filtered or unexported fields
}

func NewModel

func NewModel[T any, G any](parser parser.Parser[G], options ...lexerinput.Option[T]) *Model[T, G]

func (Model[T, G]) Error

func (m Model[T, G]) Error() error

func (*Model[T, G]) OnUpdateStart

func (m *Model[T, G]) OnUpdateStart(msg tea.Msg) tea.Cmd

func (Model[T, G]) Parsed

func (m Model[T, G]) Parsed() *G

func (Model[T, G]) ParsedBeforeCursor

func (m Model[T, G]) ParsedBeforeCursor() (*G, error)

func (*Model[T, G]) SetValue

func (m *Model[T, G]) SetValue(value string)

Generated by gomarkdoc