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

footer

package
v0.0.0-...-4540273 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

func Cancel() tea.Msg

Cancel a command operation.

func ShowError

func ShowError(err error) tea.Cmd

Show an error on the footer

func ShowStatus

func ShowStatus(msg string) tea.Cmd

Show the status on the footer

func Submit

func Submit(action string) tea.Cmd

Submit sumbits the currently written command

Types

type CancelMsg

type CancelMsg struct{}

CancelMsg cancels the current action.

type ErrorMsg

type ErrorMsg string

ErrorMsg contains an error status

type Model

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

func New

func New() Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) Clear

func (m *Model) Clear()

func (*Model) Focus

func (m *Model) Focus()

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) ShowError

func (m *Model) ShowError(err string)

func (*Model) ShowStatus

func (m *Model) ShowStatus(status string)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type StatusMsg

type StatusMsg string

StatusMsg contains a non-error status

type SubmitMsg

type SubmitMsg string

SubmitMsg is a string such as "w foo.txt" containing an action and arguments

func (SubmitMsg) Decode

func (m SubmitMsg) Decode() (string, []string)

Decode the text, returning the action and its arguments (if any)

Jump to

Keyboard shortcuts

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