diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-20 21:46:38 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-20 21:46:38 -0500 |
commit | 9eb5a5a160099547c40b654fc3d38590c5d67171 (patch) | |
tree | 5465ac46b88b57237e934b5f272b79a9fe08d523 /cmd/root.go | |
parent | 87c0c8d7ed4eb334dbd084d0ab0040589071b111 (diff) | |
download | cvez-9eb5a5a160099547c40b654fc3d38590c5d67171.tar.bz2 cvez-9eb5a5a160099547c40b654fc3d38590c5d67171.zip |
add cobra dep, add cmd/
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) + } +} + |