1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-01 05:28:30 +00:00

check: keyword filtering the checks

Allow for Check() to be narrowed to a set of keywords.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-04-12 16:49:52 -04:00
parent a544d45c4c
commit b11b9c6a78
3 changed files with 72 additions and 6 deletions

View file

@ -92,7 +92,7 @@ func main() {
dh.WriteTo(os.Stdout)
} else {
// else this is a validation
res, err := mtree.Check(rootPath, dh)
res, err := mtree.Check(rootPath, dh, currentKeywords)
if err != nil {
log.Println(err)
isErr = true