yearview

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package yearview is the TUI year view.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionMsg

type ActionMsg struct {
	Action   string // "solve", "test", "benchmark"
	Exercise discover.ExerciseInfo
	Cfg      config.Config
}

ActionMsg is sent when the user triggers an action on an exercise.

type AnalyzeMsg

type AnalyzeMsg struct {
	YearDir string
	Cfg     config.Config
}

AnalyzeMsg is sent when the user triggers analysis for the year.

type Model

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

Model is the year view TUI model showing exercises for a single year.

func New

func New(cfg config.Config, year int, exercises []discover.ExerciseInfo) Model

New creates a new year view model.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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