diff options
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") } } |
