func Execute(ver string) {
	version = ver
	if err := RootCmd.Execute(); err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
Execute adds all child commands to the root command and sets flags appropriately.
This is called by main.main(). It only needs to happen once to the rootCmd.
package cmd
import (
	"fmt"
	"os"
	"github.com/spf13/cobra"
)
var (
	version                               string
	uri, exchange, queue, tag, routingKey string
	prefetch                              int
)
var RootCmd = &cobra.Command{
	Use:   "rabbitio",
	Short: "Rabbit IO will help backup and restore your messages in RabbitMQ",
}