tui

package
v1.16.2-0...-82d92f0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateAppErrorState

func UpdateAppErrorState(state *model.AppState, err *apperrors.ArgonautError)

UpdateAppErrorState updates error state in app state

Types

type AutoHideErrorMsg

type AutoHideErrorMsg struct{}

AutoHideErrorMsg triggers automatic hiding of errors

type ErrorDisplayInfo

type ErrorDisplayInfo struct {
	Title       string `json:"title"`
	Message     string `json:"message"`
	Details     string `json:"details,omitempty"`
	UserAction  string `json:"userAction,omitempty"`
	Recoverable bool   `json:"recoverable"`
	Severity    string `json:"severity"`
	Icon        string `json:"icon"`
}

ErrorDisplayInfo holds formatted error information for display

type ErrorHandler

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

ErrorHandler manages TUI error state and responses

func GetDefaultTUIHandler

func GetDefaultTUIHandler() *ErrorHandler

GetDefaultTUIHandler returns the default TUI error handler

func NewErrorHandler

func NewErrorHandler() (*ErrorHandler, error)

NewErrorHandler creates a new TUI error handler

func (*ErrorHandler) UpdateErrorState

func (h *ErrorHandler) UpdateErrorState(state *model.AppState, err *apperrors.ArgonautError)

UpdateErrorState updates the error state in the app state

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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