From a483e69d12f9522e882b700d3ea6940a6fd86bff Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 00:47:04 -0600 Subject: misc cleanups --- main.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index ccab7df..dca3832 100644 --- a/main.go +++ b/main.go @@ -37,9 +37,19 @@ func main() { // load the ~/.config/forge/ config // this lets you configure repos you have read/write access too forge = forgepb.Init() - forge.ConfigPrintTable() + // forge.ConfigPrintTable() os.Setenv("REPO_WORK_PATH", forge.GetGoSrc()) + pb := forge.Repos.FindByGoPath(argv.Repo) + if pb == nil { + log.Info("yep, need to clone", argv.Repo) + } else { + log.Info("already have", argv.Repo) + build() + okExit(argv.Repo) + } + + // gui is in testing myGui := gui.New() // myGui.Default() @@ -191,6 +201,8 @@ func redoGoModAll() { func build() { if argv.Build { log.Info("need to try to build here") + } else { + log.Info("skipping build") } } -- cgit v1.2.3