model

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the top-level Bubble Tea model.

func New

func New(cfg config.Config) Model

New creates and initializes the Model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init loads the initial jobs from crontab.

func (Model) Update

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

Update handles all messages.

func (Model) View

func (m Model) View() string

View renders the current screen.

type ViewType

type ViewType int

ViewType represents the current screen in the TUI.

const (
	ViewList ViewType = iota
	ViewFormAdd
	ViewFormEdit
	ViewBackupList
	ViewJobDetail
	ViewConfirmDelete
	ViewSearch
	ViewRunOutput
	ViewHelp
	ViewConfirmRemoveAll
)

Jump to

Keyboard shortcuts

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