tui

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostSessionConfirmResult

type HostSessionConfirmResult int

HostSessionConfirmResult represents the outcome of a confirmation prompt

const (
	// HostSessionConfirmAccepted indicates the user accepted (pressed 'y')
	HostSessionConfirmAccepted HostSessionConfirmResult = iota
	// HostSessionConfirmRejected indicates the user rejected (pressed 'n')
	HostSessionConfirmRejected
	// HostSessionConfirmInterrupted indicates the user interrupted (pressed Ctrl+C)
	HostSessionConfirmInterrupted
)

type HostSessionModel

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

HostSessionModel handles both session display and confirmation for the host command. It renders the session information and waits for user confirmation (y/n/Ctrl+C) unless auto-accept is enabled.

func NewHostSessionModel

func NewHostSessionModel(sessionOutput string, autoAccept bool) HostSessionModel

NewHostSessionModel creates a model for displaying session and getting confirmation

func (HostSessionModel) Init

func (m HostSessionModel) Init() tea.Cmd

func (HostSessionModel) Result

Result returns the confirmation result

func (HostSessionModel) Update

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

func (HostSessionModel) View

func (m HostSessionModel) View() string

Jump to

Keyboard shortcuts

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