diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 } |
