MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ConfigPath

Method ConfigPath

internal/store/gitstore.go:90–97  ·  view source on GitHub ↗

ConfigPath returns the managed config file path.

()

Source from the content-addressed store, hash-verified

88
89// ConfigPath returns the managed config file path.
90func (s *GitTokenStore) ConfigPath() string {
91 s.dirLock.RLock()
92 defer s.dirLock.RUnlock()
93 if s.configDir == "" {
94 return ""
95 }
96 return filepath.Join(s.configDir, "config.yaml")
97}
98
99// EnsureRepository prepares the local git working tree by cloning or opening the repository.
100func (s *GitTokenStore) EnsureRepository() error {

Callers 2

PersistConfigMethod · 0.95
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected