func Execute() {
	if err := RootCmd.Execute(); err != nil {
		logrus.Error(err)
		os.Exit(-1)
	}
}
Execute adds all child commands to the root command sets flags appropriately.
This is called by main.main(). It only needs to happen once to the rootCmd.
package cmd
import (
	"os"
	"github.com/Sirupsen/logrus"
	"github.com/kujtimiihoxha/gk/fs"
	"github.com/kujtimiihoxha/gk/templates"
	"github.com/spf13/afero"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"
)
var RootCmd = &cobra.Command{
	Use:   "gk",
	Short: "A generator for go-kit that helps you create/update boilerplate code",
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}