ConfigDir returns the directory in which CAM stores its primary config files. The CAM_CONFIG_DIR environment variable wins when set so tests can isolate changes to a temporary directory.
()
| 56 | // The CAM_CONFIG_DIR environment variable wins when set so tests can isolate |
| 57 | // changes to a temporary directory. |
| 58 | func ConfigDir() string { |
| 59 | if dir := os.Getenv("CAM_CONFIG_DIR"); dir != "" { |
| 60 | return dir |
| 61 | } |
| 62 | return filepath.Join(Home(), ".config", "code-agent-manager") |
| 63 | } |
| 64 | |
| 65 | // CacheDir returns CAM's cache directory. Honors CAM_CACHE_DIR when set. |
| 66 | func CacheDir() string { |