Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupStaleTUIRuntimes ¶ added in v0.47.0
func CleanupStaleTUIRuntimes() int
CleanupStaleTUIRuntimes removes socket and metadata files for TUI processes that are no longer running.
func RemoveTUIRuntime ¶ added in v0.47.0
func RemoveTUIRuntime()
RemoveTUIRuntime removes the runtime metadata file for the current process. The socket file is removed separately by the control listener's cleanup function.
func WriteTUIRuntime ¶ added in v0.47.0
func WriteTUIRuntime(info TUIRuntimeInfo) error
WriteTUIRuntime writes the TUI runtime metadata file atomically.
Types ¶
type ClipboardWriter ¶
ClipboardWriter is an interface for clipboard operations (allows mocking in tests)
type Config ¶
type Config struct {
Endpoint daemon.DaemonEndpoint
RepoFilter string
BranchFilter string
ControlSocket string // Unix socket path for external control (default: auto)
NoQuit bool // Suppress keyboard quit (for managed TUI instances)
}
Config holds resolved parameters for running the TUI.
type TUIRuntimeInfo ¶ added in v0.47.0
type TUIRuntimeInfo struct {
PID int `json:"pid"`
SocketPath string `json:"socket_path"`
ServerAddr string `json:"server_addr"`
}
TUIRuntimeInfo stores metadata about a running TUI instance for discoverability by external tools. Filter state is intentionally omitted — it changes at runtime and should be queried via the control socket's get-filters command.
func ListAllTUIRuntimes ¶ added in v0.47.0
func ListAllTUIRuntimes() ([]*TUIRuntimeInfo, error)
ListAllTUIRuntimes returns metadata for all discovered TUI runtime files.
Source Files
¶
- actions.go
- api.go
- control.go
- control_handlers.go
- control_runtime.go
- control_types.go
- fetch.go
- filter.go
- filter_test_helpers.go
- handlers.go
- handlers_modal.go
- handlers_msg.go
- handlers_queue.go
- handlers_review.go
- helpers.go
- nav.go
- processcheck_unix.go
- render_filter.go
- render_log.go
- render_queue.go
- render_review.go
- render_tasks.go
- sse.go
- tui.go
- types.go
- util.go