diff options
| author | Jeff Carr <[email protected]> | 2025-10-27 00:26:54 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-27 00:26:54 -0500 |
| commit | b7e832d8a5a00ed6647735b8c9a3151cb8496899 (patch) | |
| tree | e9e7ad9c1af34c393973562c4e46804dae46003b /scanRepoDir.go | |
| parent | 15d011590f2d73fa82b1fe494fa57c8788e2cd43 (diff) | |
env() is useful
Diffstat (limited to 'scanRepoDir.go')
| -rw-r--r-- | scanRepoDir.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scanRepoDir.go b/scanRepoDir.go index 1e6c7e2..d5050f7 100644 --- a/scanRepoDir.go +++ b/scanRepoDir.go @@ -40,7 +40,9 @@ func (f *Forge) checkNamespace(fullpath string) (*gitpb.Repo, error) { func (f *Forge) RescanRepos() error { gopath := env.Get("gopath") - log.Info("RescanRepos() running in", gopath) + if env.Verbose() { + log.Info("RescanRepos() running in", gopath) + } f.scanRepoDir(gopath) f.Save() return errors.New("ScanReposByMode() not implemented yet") |
