From 7ccbf7f59d389013639264c8a5b541b53ecb2627 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 06:46:55 -0600 Subject: say goodbye finally --- main.go | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index d990c69..b9ffe3d 100644 --- a/main.go +++ b/main.go @@ -29,21 +29,23 @@ func main() { me.forge = forgepb.Init() me.found = new(gitpb.Repos) - var bad bool = false - all := me.forge.Repos.SortByFullPath() - for all.Scan() { - repo := all.Next() - if repo.IsDevelBranch() { - continue + /* + var bad bool = false + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.IsDevelBranch() { + continue + } + log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName()) + log.Info("not on devel branch:", repo.GetFullPath()) + log.Info("you can not continue if repos are not on devel branches") + bad = true } - log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName()) - log.Info("not on devel branch:", repo.GetFullPath()) - log.Info("you can not continue if repos are not on devel branches") - bad = true - } - if bad { - os.Exit(-1) - } + if bad { + os.Exit(-1) + } + */ // me.forge.ConfigPrintTable() os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc()) @@ -109,7 +111,7 @@ func main() { me.Disable() // register a Show/Hide function for the repo list table - me.repos.View.RegisterHideFunction(hideFunction) + // me.repos.View.RegisterHideFunction(hideFunction) // scan in the State of all the repos // TODO: should not really be necessary directly after init() @@ -124,9 +126,9 @@ func main() { repo.Status.SetReadOnly(false) } if me.forge.Config.IsPrivate(repo.GetGoPath()) { - repo.Status.SetPrivate(true) + // repo.Status.SetPrivate(true) } else { - repo.Status.SetPrivate(false) + // repo.Status.SetPrivate(false) } } @@ -151,6 +153,7 @@ func main() { }) } +/* // start the initail scan and make sure each repo is set // to the master branch func setAllBranchesToMaster() bool { @@ -177,3 +180,4 @@ func setAllBranchesToMaster() bool { } return worked } +*/ -- cgit v1.2.3