package main

import (
	"flag"
	"fmt"
	_ "net/http/pprof"
	"os"

	"github.com/spf13/pflag"
	"github.com/tidbcloud/aws-shared-provider/cmd/manager/app"
	_ "k8s.io/client-go/plugin/pkg/client/auth"
)

func main() {
	command := app.NewCommand()
	pflag.CommandLine.AddGoFlagSet(flag.CommandLine)

	if err := command.Execute(); err != nil {
		fmt.Fprintf(os.Stderr, "error: %v\n", err)
		os.Exit(1)
	}
}
