MCPcopy
hub / github.com/anomalyco/opencode / subscribeRefresh

Function subscribeRefresh

packages/tui/src/context/theme.tsx:46–49  ·  view source on GitHub ↗
(refresh)

Source from the content-addressed store, hash-verified

44 return discoverThemes(directories)
45 },
46 subscribeRefresh(refresh) {
47 process.on("SIGUSR2", refresh)
48 return () => process.off("SIGUSR2", refresh)
49 },
50}
51
52export async function discoverThemes(directories: string[]) {

Callers

nothing calls this directly

Calls 2

onMethod · 0.80
offMethod · 0.80

Tested by

no test coverage detected