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)) }, }