Skip to main content

API

executor

import "github.com/aschey/bubbleprompt/executor"

Index​

type AsyncStringModel​

type AsyncStringModel struct {
LoadingMsg string
// contains filtered or unexported fields
}

func NewAsyncStringModel​

func NewAsyncStringModel(outputFunc func() (string, error)) AsyncStringModel

func (AsyncStringModel) Init​

func (m AsyncStringModel) Init() tea.Cmd

func (AsyncStringModel) Update​

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

func (AsyncStringModel) View​

func (m AsyncStringModel) View() string

type CmdModel​

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

func NewCmdModel​

func NewCmdModel(output string, cmd tea.Cmd) CmdModel

func (CmdModel) Init​

func (m CmdModel) Init() tea.Cmd

func (CmdModel) Update​

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

func (CmdModel) View​

func (m CmdModel) View() string

type ErrorMsg​

type ErrorMsg error

type StringModel​

type StringModel string

func NewStringModel​

func NewStringModel(output string) StringModel

func (StringModel) Init​

func (m StringModel) Init() tea.Cmd

func (StringModel) Update​

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

func (StringModel) View​

func (m StringModel) View() string

Generated by gomarkdoc