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:
parent
a544d45c4c
commit
b11b9c6a78
3 changed files with 72 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue