ui

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PopModel

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

PopModel represents the pop/list command UI

func NewPopModel

func NewPopModel(store *storage.Storage) (PopModel, error)

NewPopModel creates a new pop model

func (PopModel) Init

func (m PopModel) Init() tea.Cmd

Init initializes the model

func (PopModel) Selected

func (m PopModel) Selected() string

Selected returns the selected command

func (PopModel) Update

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

Update handles messages

func (PopModel) View

func (m PopModel) View() string

View renders the UI

type PushModel

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

PushModel represents the push command UI

func NewPushModel

func NewPushModel(lastCmd string, store *storage.Storage) PushModel

NewPushModel creates a new push model

func (PushModel) Init

func (m PushModel) Init() tea.Cmd

Init initializes the model

func (PushModel) Saved

func (m PushModel) Saved() bool

Saved returns whether the command was saved

func (PushModel) Update

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

Update handles messages

func (PushModel) View

func (m PushModel) View() string

View renders the UI

Jump to

Keyboard shortcuts

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