diff options
Diffstat (limited to 'cmd/root.go')
-rw-r--r-- | cmd/root.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go new file mode 100644 index 0000000..5dbfdac --- /dev/null +++ b/cmd/root.go @@ -0,0 +1,29 @@ +package cmd + +import ( + "fmt" + "github.com/spf13/cobra" + "os" +) + +var rootCmd = &cobra.Command{ + Use: "cvez", + Short: "CVE utility tool.", + Long: ` + A Common Vulnerability (CVE), Common Platform Enumeration + (CPE), Common Vulnerability Scoring System (CVSS), and National + Vulnerability Database (NVD) feed parser. + `, + + Run: func(cmd *cobra.Command, args []string) { + // Do Stuff Here + }, +} + +func Execute() { + if err := rootCmd.Execute(); err != nil { + fmt.Println(err) + os.Exit(1) + } +} + |