diff options
| author | Jeff Carr <[email protected]> | 2025-01-08 00:59:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-08 00:59:38 -0600 |
| commit | 3d94edd024da17de76cc39078d98bc19e5ef7306 (patch) | |
| tree | 69103104500b75aef1f9d4df88a925b1860fd64d | |
| parent | a0428fa5f621d75a04ae1a85807f9616707d6ddd (diff) | |
code cleanup in aisle 9
| -rw-r--r-- | http.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,14 +1,10 @@ package main import ( - "errors" "fmt" "net/http" - "os" - "path/filepath" "strings" - "go.wit.com/lib/gui/repolist" "go.wit.com/log" ) @@ -88,9 +84,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) { setCurrentRepo(repo, "HTTP", "doRelease() ?") return - case "/testNext": - testNext() - return case "/fixNext": check := me.forge.FindByGoPath(me.current.GetGoPath()) if check == nil { @@ -102,13 +95,19 @@ func okHandler(w http.ResponseWriter, r *http.Request) { findOk = true return case "/showNext": - showNext() + check := me.forge.FindByGoPath(me.current.GetGoPath()) + if check == nil { + log.Info("boo, current is missing", me.current.GetGoPath()) + return + } + me.forge.HumanPrintRepo(check) return case "/list": me.forge.PrintReleaseReport(me.forge.Repos) return case "/releaseList": me.forge.PrintReleaseReport(me.found) + me.forge.PrintHumanTable(me.found) return default: log.Info("BAD URL = " + route) @@ -128,6 +127,7 @@ func startHTTP() { } } +/* func testNext() { // re-scans the go.sum file. DOES NOT MODIFY ANYTHING check := me.forge.FindByGoPath(me.current.GetGoPath()) @@ -210,3 +210,4 @@ func showNext() { log.Info(repolist.ReleaseReportHeader()) log.Info(me.forge.StandardReleaseHeader(me.current, "notsure")) } +*/ |
