ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const RootCmdLong string = `` /* 1073-byte string literal not displayed */

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "ui",
	Short: "Opens the TUI for this application",
	RunE: func(cmd *cobra.Command, args []string) error {
		model := newDihdahModel()
		p := tea.NewProgram(model, tea.WithMouseCellMotion())
		if _, err := p.Run(); err != nil {
			return fmt.Errorf("Error running the model: %v", err)
		}
		return nil
	},
}

Functions

This section is empty.

Types

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

func (Popup) Init

func (p Popup) Init() tea.Cmd

func (Popup) Update

func (p Popup) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Popup) View

func (p Popup) View() string

type UI_Input added in v1.1.0

type UI_Input interface {
	components.Input
	components.Reactor

	Focused() bool
}

Jump to

Keyboard shortcuts

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