package cmd import ( "fmt" "os" "github.com/spf13/cobra" ) func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Println(err) os.Exit(1) } } var rootCmd = &cobra.Command{ Use: "wx", Short: "wx is a front-end for NOAA's Aviation Weather Center", Long: `A front-end for NOAA's Aviation Weather Center. Capable of fetching weather information from the Center's Text Data Server (TDS) and displaying it in various formats.`, }