()
| 36 | |
| 37 | const themeSource: ThemeSource = { |
| 38 | async discover() { |
| 39 | const directories = [Global.Path.config] |
| 40 | for (let current = process.cwd(); ; current = path.dirname(current)) { |
| 41 | directories.push(path.join(current, ".opencode")) |
| 42 | if (path.dirname(current) === current) break |
| 43 | } |
| 44 | return discoverThemes(directories) |
| 45 | }, |
| 46 | subscribeRefresh(refresh) { |
| 47 | process.on("SIGUSR2", refresh) |
| 48 | return () => process.off("SIGUSR2", refresh) |
no test coverage detected