diff --git a/templates/server/cmdServe.gotmpl b/templates/server/cmdServe.gotmpl index c917dd3302e1e04bcd7a277373a257788e6c1e7d_dGVtcGxhdGVzL3NlcnZlci9jbWRTZXJ2ZS5nb3RtcGw=..3f4e68483f090ad141b947f65d73bcdb12e0e255_dGVtcGxhdGVzL3NlcnZlci9jbWRTZXJ2ZS5nb3RtcGw= 100644 --- a/templates/server/cmdServe.gotmpl +++ b/templates/server/cmdServe.gotmpl @@ -119,6 +119,7 @@ func init() { var serveCmd = NewServerCmd() + setupServerCmd(serveCmd) serve, err := parser.AddCommand("serve", "Serves the API", "", serveCmd) if err != nil { Logger.Fatal().Msg(err.Error()) diff --git a/templates/server/cmdServeConfig.gotmpl b/templates/server/cmdServeConfig.gotmpl index c917dd3302e1e04bcd7a277373a257788e6c1e7d_dGVtcGxhdGVzL3NlcnZlci9jbWRTZXJ2ZUNvbmZpZy5nb3RtcGw=..3f4e68483f090ad141b947f65d73bcdb12e0e255_dGVtcGxhdGVzL3NlcnZlci9jbWRTZXJ2ZUNvbmZpZy5nb3RtcGw= 100644 --- a/templates/server/cmdServeConfig.gotmpl +++ b/templates/server/cmdServeConfig.gotmpl @@ -2,6 +2,10 @@ package cmd +func setupServerCmd(cmd *ServeCmd) { + // This is where CommandLineOptionsGroups can be added to the API +} + func setupServeConfig(config *restapi.Config) error { // This is where the api config can be customized at will return nil