diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 00:47:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 00:47:04 -0600 |
| commit | a483e69d12f9522e882b700d3ea6940a6fd86bff (patch) | |
| tree | b19c17eb860253f7d21b6e7dfb650e119ee15352 /main.go | |
| parent | 58a05460c7c295980d5d7be38df0aeae1ccd88fa (diff) | |
misc cleanupsv0.6.8
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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") } } |
