message

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package message contains shared messages which are used to communicate between bubbletea components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TeaCmd

func TeaCmd(msg any) func() tea.Msg

TeaCmd - is a helper function which creates tea.Cmd from tea.Msg object.

func TerminalSizePollingMsg added in v0.2.0

func TerminalSizePollingMsg() tea.Msg

TerminalSizePollingMsg - is a tea.Msg which is used to poll terminal size.

Types

type HostListSelectItem added in v0.4.0

type HostListSelectItem struct{ HostID int }

HostListSelectItem is required to let host list know that it's time to update title.

type HostSSHConfigLoaded added in v1.1.0

type HostSSHConfigLoaded struct{ Config ssh.Config }

HostSSHConfigLoaded triggers when app loads a host config using ssh -G <hostname>. The config is stored in main model: m.appState.HostSSHConfig.

type InitComplete

type InitComplete struct{}

InitComplete - is a message which is sent when bubbletea models are initialized.

type RunProcessConnectSSH added in v1.1.0

type RunProcessConnectSSH struct{ Host host.Host }

RunProcessConnectSSH is dispatched when user wants to connect to a host.

type RunProcessErrorOccurred added in v1.1.0

type RunProcessErrorOccurred struct {
	Name string
	Err  error
}

RunProcessErrorOccurred fires when there is an error executing an external process.

type RunProcessLoadSSHConfig added in v1.1.0

type RunProcessLoadSSHConfig struct{ Host host.Host }

RunProcessLoadSSHConfig is dispatched it's required to read .ssh/config file for a certain host.

type RunProcessSuccess added in v1.1.0

type RunProcessSuccess struct {
	ProcessName string
	Output      *string
}

RunProcessSuccess fires when external process exits normally.

type TerminalSizePolling added in v0.2.0

type TerminalSizePolling struct{ Width, Height int }

TerminalSizePolling - is a message which is sent when terminal width and/or height changes.

Jump to

Keyboard shortcuts

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