grype/cmd/db_update.go
2020-05-26 13:31:50 -04:00

24 lines
418 B
Go

package cmd
import (
"os"
"github.com/spf13/cobra"
)
var dbUpdateCmd = &cobra.Command{
Use: "update",
Short: "download the latest vulnerability database",
Run: func(cmd *cobra.Command, args []string) {
os.Exit(runDbUpdateCmd(cmd, args))
},
}
func init() {
dbCmd.AddCommand(dbUpdateCmd)
}
func runDbUpdateCmd(cmd *cobra.Command, args []string) int {
log.Error("database UPDATE command...")
return 0
}