MCPcopy Index your code
hub / github.com/docker/docker-agent / SetConfigDir

Function SetConfigDir

pkg/paths/paths.go:44–44  ·  view source on GitHub ↗

SetConfigDir overrides the default config directory returned by [GetConfigDir]. An empty value restores the default behaviour.

(dir string)

Source from the content-addressed store, hash-verified

42// SetConfigDir overrides the default config directory returned by [GetConfigDir].
43// An empty value restores the default behaviour.
44func SetConfigDir(dir string) { configDirOverride.Set(dir) }
45
46// SetDataDir overrides the default data directory returned by [GetDataDir].
47// An empty value restores the default behaviour.

Callers 11

writeAliasFunction · 0.92
isolateTourStateFunction · 0.92
useEmptyUserConfigFunction · 0.92
isolateConfigDirFunction · 0.92
TestMainFunction · 0.92
TestApplyThemePrecedenceFunction · 0.92
NewRootCmdFunction · 0.92
isolateStateFunction · 0.92
SetRootFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by 9

writeAliasFunction · 0.74
isolateTourStateFunction · 0.74
useEmptyUserConfigFunction · 0.74
isolateConfigDirFunction · 0.74
TestMainFunction · 0.74
TestApplyThemePrecedenceFunction · 0.74
isolateStateFunction · 0.74