blob: e4acdc34ee4efe6e7a1f672740be76d5b8a96367 [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Command checkdb validates Go vulnerability databases.
package main
import (
"flag"
"fmt"
"log"
db "golang.org/x/vulndb/internal/database"
)
func main() {
flag.Parse()
path := flag.Arg(0)
if path == "" {
log.Fatal("path must be set\nusage: checkdb [path]")
}
if _, err := db.Load(path); err != nil {
log.Fatal(err)
}
fmt.Printf("%s contains valid v1 database\n", path)
}