feat(aa-log): add profile sort & merge methods.

This commit is contained in:
Alexandre Pujol 2023-09-25 00:17:41 +01:00
parent 88f275ef43
commit 43981517b2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 102 additions and 1 deletions

View file

@ -67,6 +67,8 @@ func aaLog(logger string, path string, profile string) error {
if rules {
profiles := aaLogs.ParseToProfiles()
for _, profile := range profiles {
profile.Sort()
profile.MergeRules()
fmt.Print(profile.String() + "\n")
}
} else {