watch

package
v0.7.154 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package watch implements the chunk watch TUI dashboard.

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 BubbleTea model for the watch dashboard.

func New

func New(projects []ProjectEntry, watchAll bool) Model

New creates a Model ready to run. When watchAll is true, each poll also checks for projects that have saved a sidecar since the dashboard started and adds them, so a sidecar started after `chunk watch --all` launches still shows up without a restart.

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() tea.View

type ProjectEntry

type ProjectEntry struct {
	Log         *eventlog.Log
	DataDir     string
	ProjectRoot string
}

ProjectEntry holds everything the watch model needs for one project.

Jump to

Keyboard shortcuts

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