code cleanup in aisle 9
This commit is contained in:
parent
a0428fa5f6
commit
3d94edd024
17
http.go
17
http.go
|
@ -1,14 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
"path/filepath"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/repolist"
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -88,9 +84,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
setCurrentRepo(repo, "HTTP", "doRelease() ?")
|
setCurrentRepo(repo, "HTTP", "doRelease() ?")
|
||||||
return
|
return
|
||||||
case "/testNext":
|
|
||||||
testNext()
|
|
||||||
return
|
|
||||||
case "/fixNext":
|
case "/fixNext":
|
||||||
check := me.forge.FindByGoPath(me.current.GetGoPath())
|
check := me.forge.FindByGoPath(me.current.GetGoPath())
|
||||||
if check == nil {
|
if check == nil {
|
||||||
|
@ -102,13 +95,19 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
findOk = true
|
findOk = true
|
||||||
return
|
return
|
||||||
case "/showNext":
|
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
|
return
|
||||||
case "/list":
|
case "/list":
|
||||||
me.forge.PrintReleaseReport(me.forge.Repos)
|
me.forge.PrintReleaseReport(me.forge.Repos)
|
||||||
return
|
return
|
||||||
case "/releaseList":
|
case "/releaseList":
|
||||||
me.forge.PrintReleaseReport(me.found)
|
me.forge.PrintReleaseReport(me.found)
|
||||||
|
me.forge.PrintHumanTable(me.found)
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
log.Info("BAD URL = " + route)
|
log.Info("BAD URL = " + route)
|
||||||
|
@ -128,6 +127,7 @@ func startHTTP() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func testNext() {
|
func testNext() {
|
||||||
// re-scans the go.sum file. DOES NOT MODIFY ANYTHING
|
// re-scans the go.sum file. DOES NOT MODIFY ANYTHING
|
||||||
check := me.forge.FindByGoPath(me.current.GetGoPath())
|
check := me.forge.FindByGoPath(me.current.GetGoPath())
|
||||||
|
@ -210,3 +210,4 @@ func showNext() {
|
||||||
log.Info(repolist.ReleaseReportHeader())
|
log.Info(repolist.ReleaseReportHeader())
|
||||||
log.Info(me.forge.StandardReleaseHeader(me.current, "notsure"))
|
log.Info(me.forge.StandardReleaseHeader(me.current, "notsure"))
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in New Issue