aboutsummaryrefslogtreecommitdiff
path: root/cmd/root.go
blob: 62e3af17a4876e0e076aab2c948797b4322eeacc (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
30
31
32
33
34
35
36
package cmd

import (
  "fmt"
  "github.com/spf13/cobra"
  "os"
  // TODO:
  // "encoding/json"
  // "fmt"
  // "log"
  // "nvd/internal/cvss"
  // "nvd/internal/feed"
  // "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)
  }
}