ConfigPath returns the managed config file path.
()
| 88 | |
| 89 | // ConfigPath returns the managed config file path. |
| 90 | func (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. |
| 100 | func (s *GitTokenStore) EnsureRepository() error { |
no outgoing calls
no test coverage detected