func GetServerCmd() *cobra.Command {
	var serverPort string
	var maxWorkers int
	serverCmd := &cobra.Command{
		Use:   "nristioadapter",
		Short: "nristioadapter is a gRPC adapter of Istio Mixer for New Relic backend.",
		Long:  "nristioadapter is a gRPC adapter of Istio Mixer for New Relic backend.\n",
		Run: func(cmd *cobra.Command, args []string) {
			runServer(serverPort, maxWorkers)
		},
	}
	serverCmd.PersistentFlags().StringVarP(&serverPort, "port", "", serverPort,
		"gRPC port for Adapter to communicate with Istio Mixer")
	serverCmd.PersistentFlags().IntVarP(&maxWorkers, "maxworkers", "", maxWorkers,
		"maximal workers to handler requests")
	return serverCmd
}
GetServerCmd returns the root of the cobra command-tree.
package cmd
import (
	"fmt"
	"os"
	newrelic "github.com/IBM/newrelic-istio-adapter/newrelic/pkg"
	"github.com/spf13/cobra"
)