summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 00:47:04 -0600
committerJeff Carr <[email protected]>2024-12-01 00:47:04 -0600
commita483e69d12f9522e882b700d3ea6940a6fd86bff (patch)
treeb19c17eb860253f7d21b6e7dfb650e119ee15352 /main.go
parent58a05460c7c295980d5d7be38df0aeae1ccd88fa (diff)
misc cleanupsv0.6.8
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 13 insertions, 1 deletions
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")
}
}