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) WithDaemonArgs ¶ added in v0.7.164
WithDaemonArgs returns a copy of m that can relaunch the watch daemon when a poll finds it gone. subArgs is the argv the daemon is started with, the same one passed to watchd.EnsureRunning.
Click to show internal directories.
Click to hide internal directories.