@globs(treelike)

Treats the keys of tree as simple glob patterns. The following patterns are supported:

  • * matches anything
  • ? matches a single character
$ cat globs.yaml
"*.jpg": false
"*.txt": true

$ ori "@globs(globs.yaml)/foo.jpg"
false
$ ori "@globs(globs.yaml)/foo.txt"
true

This can be used, for example, in conjunction with @filter to filter values based on glob patterns.