Skip to content
Snippets Groups Projects
Commit 3f4e68483f09 authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

Add a callback for setting up the 'serve' cmd

parent c917dd3302e1
No related branches found
No related tags found
No related merge requests found
Pipeline #10472 passed
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
func init() { func init() {
var serveCmd = NewServerCmd() var serveCmd = NewServerCmd()
setupServerCmd(serveCmd)
serve, err := parser.AddCommand("serve", "Serves the API", "", serveCmd) serve, err := parser.AddCommand("serve", "Serves the API", "", serveCmd)
if err != nil { if err != nil {
Logger.Fatal().Msg(err.Error()) Logger.Fatal().Msg(err.Error())
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
package cmd package cmd
func setupServerCmd(cmd *ServeCmd) {
// This is where CommandLineOptionsGroups can be added to the API
}
func setupServeConfig(config *restapi.Config) error { func setupServeConfig(config *restapi.Config) error {
// This is where the api config can be customized at will // This is where the api config can be customized at will
return nil return nil
......
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