def model.wanted
import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usageimport Base
50# `n` is lowercase; the configured name is lowercased here. `all` matches any.
51def model.wanted(+n: String, +ms: List<&2, String>) -> Bool:
52 match ms:
53 case Nil{}:
54 False{}
55 case Con{m, t}:
56 String.eq(n, String.to_lower(m)) || String.eq("all", String.to_lower(m)) || model.wanted(n, t)