interview

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 9 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[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](root question.Question[T], initialState T) (Model[T], error)

New returns a new interview model.

func (Model[T]) Init

func (m Model[T]) Init() tea.Cmd

func (Model[T]) State

func (m Model[T]) State() (T, error)

func (Model[T]) Update

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

func (Model[T]) View

func (m Model[T]) View() string

Jump to

Keyboard shortcuts

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