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 @@
func init() {
var serveCmd = NewServerCmd()
setupServerCmd(serveCmd)
serve, err := parser.AddCommand("serve", "Serves the API", "", serveCmd)
if err != nil {
Logger.Fatal().Msg(err.Error())
......
......@@ -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
......
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