summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-28 17:40:52 -0500
committerJeff Carr <[email protected]>2025-08-28 19:30:59 -0500
commit906d50a771292652e896496708e247fe4be695fa (patch)
tree02ab1d6c7d507bde9ab8d596fca61fe2f369e838 /main.go
parent86ac85dd5b5432ca3d1ff935b6ff6582ba37c287 (diff)
test
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index 893c20d..2eae239 100644
--- a/main.go
+++ b/main.go
@@ -9,6 +9,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
+ "go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
@@ -47,6 +48,14 @@ func main() {
os.Setenv("FORGE_GOSRC", "/home/forge")
}
+ if err := LoadPatchsets(); err != nil {
+ if argv.Force == true {
+ me.all = forgepb.NewPatchsets()
+ } else {
+ badExit(err)
+ }
+ }
+
if argv.List != nil {
doList()
okExit("")
@@ -64,6 +73,7 @@ func main() {
okExit("")
}
+ // if argv.Daemon == true {
http.HandleFunc("/", okHandler)
// go https() // use caddy instead
p := fmt.Sprintf(":%d", argv.Port)
@@ -74,6 +84,7 @@ func main() {
if err != nil {
log.Println("Error starting server:", err)
}
+ // }
}
func formatDuration(d time.Duration) string {