From 84115c27121574923ed29f37b9b057de0761ff2c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 19 Feb 2024 14:40:21 -0600 Subject: start clean up and rearrage buttons --- main.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 3c98bb3..25ca301 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,6 @@ func main() { // scan in the repo map first // hopefully this is the list of all the golang packages and only the GUI golang packages me.repos = makeRepoView() - log.Sleep(3) // create the right side of the main window createReleaseBox(me.mainBox) @@ -101,16 +100,10 @@ func main() { }) } -func setRepoState() { - // start the initail scan and make sure each repo is set - // to the master branch +// start the initail scan and make sure each repo is set +// to the master branch +func setBranchToMaster() { for _, repo := range me.repos.View.AllRepos() { - if repo.ReadOnly() { - continue - } - if whitelist(repo.GoPath()) { - continue - } if repo.Status.CheckoutMaster() { log.Warn("git checkout master branch worked", repo.Name()) } else { @@ -118,6 +111,9 @@ func setRepoState() { } repo.NewScan() } +} + +func setTargetVersion() { // go through and set the target versions for each repo // todo: add sanity checking in repolist to verify these and/or autocompute them // for now, just don't be stupid when you set your ENV vars @@ -147,8 +143,6 @@ func setRepoState() { lasttag := repo.Status.GetLastTagVersion() repo.Status.SetTargetVersion(lasttag) } - } - for _, repo := range me.repos.View.AllRepos() { repo.NewScan() } } -- cgit v1.2.3