MCPcopy Create free account
hub / github.com/docker/cli / SetDir

Function SetDir

cli/config/config.go:93–97  ·  view source on GitHub ↗

SetDir sets the directory the configuration file is stored in

(dir string)

Source from the content-addressed store, hash-verified

91
92// SetDir sets the directory the configuration file is stored in
93func SetDir(dir string) {
94 // trigger the sync.Once to synchronise with Dir()
95 initConfigDir.Do(func() {})
96 configDir = filepath.Clean(dir)
97}
98
99// Path returns the path to a file relative to the config dir
100func Path(p ...string) (string, error) {

Callers 4

setupConfigDirFunction · 0.85
TestConfigDirFunction · 0.85
TestConfigPathFunction · 0.85
TestSetDirFunction · 0.85

Calls

no outgoing calls

Tested by 4

setupConfigDirFunction · 0.68
TestConfigDirFunction · 0.68
TestConfigPathFunction · 0.68
TestSetDirFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…