package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Apr 1, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package state manages the recording state file for cross-invocation coordination.
Clear removes the state file.
Write persists state to the given path.
type State struct {
Recording bool `json:"recording"`
Paused bool `json:"paused"`
PID int `json:"pid"`
File string `json:"file"`
StartedAt time.Time `json:"started_at"`
Countdown int `json:"countdown,omitempty"`
}
State represents the current recording state persisted to disk.
Read loads state from the given path. Returns an idle state if the file
doesn't exist or contains invalid JSON. Cleans up stale PIDs automatically.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.