summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-05 05:42:22 -0500
committerJeff Carr <[email protected]>2025-10-05 05:44:12 -0500
commite8e842929fb05149c83ec8e585e3b4470f7d6abc (patch)
treef2c116440e1d8cdd8db29511de50b841feef3a73 /main.go
parent96ea43517957c1bab0ef563e003455df7117c468 (diff)
adding new argvv0.22.122
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index d833b38..6e87070 100644
--- a/main.go
+++ b/main.go
@@ -6,6 +6,7 @@ import (
"net/http"
"time"
+ "go.wit.com/lib/gui/prep"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -18,7 +19,8 @@ var BUILDTIME string
//go:embed resources/*
var resources embed.FS
-// var accessf, clientf *os.File
+// used for shell auto completion
+var ARGNAME string = "gowebd"
var repoMap map[string]string
var gitMap map[string]*gitpb.Repo
@@ -32,6 +34,9 @@ var FOOTER string = "/etc/gowebd/footer.html"
var LIBDIR string = "/var/lib/gowebd/"
func main() {
+ me = new(mainType)
+ me.sh = prep.Bash(&argv) // adds shell auto complete to go-args
+
if argv.RepoMap != "" {
REPOMAP = argv.RepoMap
}