Help us shape the future of Go! Take the 2026 Go Developer Survey

commandinput

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name        string
	Description string
	Handler     func(args []string) tea.Msg // executed when valid
}

Command defines metadata for a recognized command.

type Model

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

func New

func New() *Model

func (*Model) Hide

func (m *Model) Hide() tea.Cmd

func (*Model) Show

func (m *Model) Show() tea.Cmd

func (*Model) ShowError

func (m *Model) ShowError(msg string) tea.Cmd

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

func (*Model) Visible

func (m *Model) Visible() bool

type SubmitMsg

type SubmitMsg struct {
	Command string
	Args    []string
}

SubmitMsg is emitted when the user presses Enter in command mode.

Jump to

Keyboard shortcuts

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