SetCacheDir overrides the default cache directory returned by [GetCacheDir]. An empty value restores the default behaviour. This should be called early (e.g. during CLI flag processing) before any goroutine calls the corresponding getter.
(dir string)
| 38 | // This should be called early (e.g. during CLI flag processing) before any |
| 39 | // goroutine calls the corresponding getter. |
| 40 | func SetCacheDir(dir string) { cacheDirOverride.Set(dir) } |
| 41 | |
| 42 | // SetConfigDir overrides the default config directory returned by [GetConfigDir]. |
| 43 | // An empty value restores the default behaviour. |
no test coverage detected