cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cli provides TUI functionality using Bubble Tea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command.

Types

type Model

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

Model represents the state of the TUI application.

func NewModel

func NewModel() Model

NewModel creates a new Model with default values.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model. It returns an optional initial command.

func (Model) IsQuitting

func (m Model) IsQuitting() bool

IsQuitting returns whether the application is in quitting state.

func (Model) Message

func (m Model) Message() string

Message returns the current message.

func (Model) Update

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

Update handles messages and updates the model accordingly.

func (Model) View

func (m Model) View() string

View renders the current state of the model as a string.

Directories

Path Synopsis
Package tui provides Bubble Tea based TUI components for image compression progress display.
Package tui provides Bubble Tea based TUI components for image compression progress display.

Jump to

Keyboard shortcuts

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