func Execute() {
	cmd := newRootCmd()
	err := cmd.Execute()
	if err != nil {
		if viper.GetBool("debug") {
			panic(err)
		}
		fmt.Printf("%+v\n", err)
		os.Exit(1)
	}
}
Execute is the entrypoint of the metal-go application
package cmd
import (
	"fmt"
	"log"
	"os"
	"strings"
	metalgo "github.com/metal-stack/metal-go"
	"github.com/metal-stack/metalctl/cmd/completion"
	"github.com/metal-stack/metalctl/pkg/api"
	"github.com/spf13/cobra"
	"github.com/spf13/cobra/doc"
	"github.com/spf13/viper"
)
var (
	defaultSSHKeys = [...]string{"id_ed25519", "id_rsa", "id_dsa"}
	bindPFlags = func(cmd *cobra.Command, args []string) {
		err := viper.BindPFlags(cmd.Flags())
		if err != nil {
			log.Fatal(err.Error())
		}
	}
)