feat(aa): a Constraint and Kind method to the Rule interface.

This commit is contained in:
Alexandre Pujol 2024-05-04 23:41:47 +01:00
parent a5c4eab0cf
commit f763d31a07
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 210 additions and 19 deletions

View file

@ -60,8 +60,13 @@ func (r *File) Equals(other any) bool {
}
func (r *File) String() string {
return renderTemplate("file", r)
return renderTemplate(r.Kind(), r)
}
r.Target == o.Target && r.Qualifier.Equals(o.Qualifier)
func (r *File) Constraint() constraint {
return blockKind
}
func (r *File) Kind() string {
return "file"
}