aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd.go2
-rw-r--r--cmd/root.go29
2 files changed, 31 insertions, 0 deletions
diff --git a/cmd/cmd.go b/cmd/cmd.go
new file mode 100644
index 0000000..faf2b75
--- /dev/null
+++ b/cmd/cmd.go
@@ -0,0 +1,2 @@
+// Command-line interface
+package cmd
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)
+ }
+}
+