Add a generate-registration command

This commit is contained in:
Gary Kramlich
2021-11-18 02:44:21 -06:00
parent 5b3811ce96
commit 09911a11e3
10 changed files with 229 additions and 2 deletions

View File

@@ -8,13 +8,15 @@ import (
"gitlab.com/beeper/discord/consts"
"gitlab.com/beeper/discord/globals"
"gitlab.com/beeper/discord/registration"
"gitlab.com/beeper/discord/version"
)
var cli struct {
globals.Globals
Version version.Cmd `kong:"cmd,help='Display the version and exit'"`
GenerateRegistration registration.Cmd `kong:"cmd,help='Generate the registration file for synapse and exit'"`
Version version.Cmd `kong:"cmd,help='Display the version and exit'"`
}
func main() {