watch

package
v0.7.204 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 16 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 (the default for `chunk watch`; `--focus` turns it off), each poll also checks for projects that have saved a sidecar since the dashboard started and adds them, so a sidecar started after the dashboard 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

func (Model) WithConnection added in v0.7.196

func (m Model) WithConnection(conn chunkd.Connection) Model

WithConnection returns a copy of m that reports conn as the daemon it talks to. New reads it from the environment; this is for callers and tests that already know.

func (Model) WithRelaunch added in v0.7.204

func (m Model) WithRelaunch() Model

WithRelaunch returns a copy of m that starts the daemon again when a poll finds it gone.

type ProjectEntry

type ProjectEntry struct {
	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