Skip to content
Snippets Groups Projects
Commit d2e28fed authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Update long flag keys

parent 90857f1c
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ import (
"maunium.net/go/mautrix"
)
var gitlabToken = flag.MakeFull("t", "token", "GitLab access token", "").String()
var gitlabToken = flag.MakeFull("t", "gitlab-token", "GitLab access token", "").String()
var gitlabDomain = flag.MakeFull("d", "gitlab-domain", "GitLab domain", "https://gitlab.com").String()
var git *gitlab.Client
......
......@@ -27,9 +27,9 @@ import (
flag "maunium.net/go/mauflag"
)
var gitlabListenAddr = flag.MakeFull("l", "gitlab", "GitLab listen address", ":8080").String()
var gitlabListenPath = flag.MakeFull("g", "gitlab-path", "GitLab listen path", "/webhooks").String()
var gitlabSecret = flag.MakeFull("e", "secret", "GitLab secret", "").String()
var gitlabListenAddr = flag.MakeFull("l", "webhook-listen", "GitLab listen address", ":8080").String()
var gitlabListenPath = flag.MakeFull("g", "webhook-path", "GitLab listen path", "/webhooks").String()
var gitlabSecret = flag.MakeFull("e", "webhook-secret", "GitLab secret", "").String()
func addRoomToHeaders(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment