Obsctl::CLI::Watcher
Streams daemon events to stdout as newline-delimited JSON.
watch is the scripting counterpart to the TUI: it subscribes to the same
daemon topics and writes one self-describing JSON object per line, so a
consumer can pipe it into jq or read it line-by-line without framing
logic. Each line is flushed immediately; a buffered stream would make the
command useless for reacting to events as they happen.
Constants
DEFAULT_TOPICS = TOPICS
SUBSCRIBE_ID = "watch-subscribe"
TOPICS = ["state", "events", "logs"]
Constructors
Class methods
Opens a subscription session for the requested topics.