diff options
| author | Jeff Carr <[email protected]> | 2024-02-17 14:22:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-17 14:22:24 -0600 |
| commit | b298958bcd460763e44348467c1c5bd4591b11e7 (patch) | |
| tree | 395e4be5e31b3939fc1ca596642be2b0d634db7c /scan.go | |
| parent | 1b103f2a1c9beb87e61ebbd04fe7cdbf605988ed (diff) | |
early successes. autotypist works
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -8,12 +8,16 @@ import ( "go.wit.com/log" ) -func ScanRepositories() (int, string) { +func (r *RepoList) SetAutoScan(b bool) { + me.autoScan = b +} + +func (r *RepoList) ScanRepositories() (int, string) { var i int t := timeFunction(func() { for _, repo := range me.allrepos { i += 1 - repo.newScan() + repo.NewScan() } }) s := fmt.Sprint(t) @@ -21,7 +25,7 @@ func ScanRepositories() (int, string) { return i, s } -func (r *Repo) newScan() bool { +func (r *Repo) NewScan() bool { if r.status == nil { log.Warn("repo.status = nil. not initialized for some reason") return false |
