diff options
author | Ben Burwell <ben@benburwell.com> | 2020-02-06 14:03:38 -0500 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-02-06 14:03:38 -0500 |
commit | 3e75f88d804598041dbcf4f3139d91c283acdeef (patch) | |
tree | 061cae6d54305891a64bfe3d914fdff3a281e373 /cmd/root.go | |
parent | e8a58306f21ec14582b0b19cf34065c5aa4c6351 (diff) |
finish adding flags
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..09660f0 --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,23 @@ +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.`, +} |