func Execute() {
	if err := rootioCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
Execute - starts the command parsing process
package cmd
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"os"
	log "github.com/sirupsen/logrus"
	"github.com/spf13/cobra"
	"github.com/tinkerbell/hub/actions/rootio/v1/pkg/storage"
	"github.com/tinkerbell/hub/actions/rootio/v1/pkg/types.go"
)
var metadata *types.Metadata
var Release struct {
	Version string
	Build   string
}
var rootioCmd = &cobra.Command{
	Use:   "rootio",
	Short: "This is a tool for managing storage for bare-metal servers",
}
func init() {
	rootioCmd.AddCommand(rootioFormat)
	rootioCmd.AddCommand(rootioPartition)
	rootioCmd.AddCommand(rootioMount)
	rootioCmd.AddCommand(rootioVersion)
	var err error
	if os.Getenv("TEST") != "" {
		metadata, err = test()
		if err != nil {
			log.Fatal(err)
		}
	} else {
		metadata, err = types.RetreieveData()
		if err != nil {
			log.Fatal(err)
		}
	}
	fmt.Printf("Succesfully parsed the MetaData, Found [%d] Disks\n", len(metadata.Storage.Disks))
}