aboutsummaryrefslogtreecommitdiff
path: root/cmd/cvss.go
blob: 0076ccd39312d620f22a3478281ffe542e4eed2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package cmd

import (
  "github.com/pablotron/cvez/cvss"
  "github.com/spf13/cobra"
)

var cvssCmd = &cobra.Command{
  Use:   "cvss",
  Short: "CVSS vector calculator.",
  Long: `Common Vulnerability Scoring System (CVSS) vector calculator.`,

  Run: func(cmd *cobra.Command, args []string) {
    // parse args, write result
    jsonEncode(cvss.Calc(args))
  },
}