package cmd import ( "fmt" "os" "github.com/spf13/cobra" ) var rootCmd = &cobra.Command{ Use: "${REPO_NAME}", Short: "A brief description of your application", Long: `A longer description that spans multiple lines and likely contains examples and usage of using your application.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("Hello from your new Go CLI tool ${REPO_NAME}!") }, } // 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. func Execute() error { return rootCmd.Execute() } func init() { // Here you will define your flags and configuration settings. }