From b298958bcd460763e44348467c1c5bd4591b11e7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 17 Feb 2024 14:22:24 -0600 Subject: early successes. autotypist works --- scan.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scan.go') diff --git a/scan.go b/scan.go index 8f36f1b..11c9dce 100644 --- a/scan.go +++ b/scan.go @@ -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 -- cgit v1.2.3