commandhistory

package
v0.0.0-...-21e2bab Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	UserInput       = "UserInput"
	SuccessResponse = "SuccessResponse"
	FailureResponse = "FailureResponse"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandText

type CommandText struct {
	Text string
	Host string
	Type string
}

type Model

type Model struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func New

func New(size int, width int, height int) Model

func (*Model) AddCommandText

func (m *Model) AddCommandText(ct CommandText)

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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