aboutsummaryrefslogtreecommitdiff
path: root/cmd/root.go
blob: 5dbfdac58463ca93702a1bc03ce1db7476fe2978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)
  }
}