feat(aa): add a string method to all rule struct.
This commit is contained in:
parent
e9fa0660f8
commit
5483668574
20 changed files with 337 additions and 34 deletions
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
package aa
|
||||
|
||||
const tokCHANGEPROFILE = "change_profile"
|
||||
|
||||
type ChangeProfile struct {
|
||||
RuleBase
|
||||
Qualifier
|
||||
|
|
@ -41,3 +43,7 @@ func (r *ChangeProfile) Equals(other any) bool {
|
|||
return r.ExecMode == o.ExecMode && r.Exec == o.Exec &&
|
||||
r.ProfileName == o.ProfileName && r.Qualifier.Equals(o.Qualifier)
|
||||
}
|
||||
|
||||
func (r *ChangeProfile) String() string {
|
||||
return renderTemplate(tokCHANGEPROFILE, r)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue