MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / ConfigDir

Function ConfigDir

internal/pathutil/pathutil.go:58–63  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

56// The CAM_CONFIG_DIR environment variable wins when set so tests can isolate
57// changes to a temporary directory.
58func 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.
66func CacheDir() string {

Callers 15

LoadDefaultFunction · 0.92
configListCommandMethod · 0.92
DefaultPathFunction · 0.92
managedDirFunction · 0.92
NewStoreFunction · 0.92
MigrateEntityStorageFunction · 0.92
DefaultPathFunction · 0.92
NewStoreFunction · 0.92
FindFunction · 0.92
LoadAllFunction · 0.92
deleteProvidersJSONFunction · 0.92

Calls 1

HomeFunction · 0.85