aboutsummaryrefslogtreecommitdiff
path: root/cmd/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/root.go')
-rw-r--r--cmd/root.go23
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.`,
+}