diff options
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index a77c5dd..018c32f 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -266,6 +266,13 @@ return new Object() { } return tt; }; + final matchTags = { spec -> + return { obj -> + spec.every({ s -> + return (s[0] == "!") ? obj.tags.indexOf(s.drop(1)) == -1 : obj.tags.indexOf(s) != -1; + }); + }; + }; // Session def sessionSummon = { imageSpec -> |