Files
hk4e-go/cmd/hk4e/multi.go
T

24 lines
416 B
Go

package main
import (
"context"
"hk4e/multi/app"
"github.com/spf13/cobra"
)
func MultiCmd() *cobra.Command {
var cfg string
app.APPVERSION = VERSION
c := &cobra.Command{
Use: "multi",
Short: "multi server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
},
}
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
return c
}