Skip to content

Commit

Permalink
[improve] Added optional tags filtering to plugin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Jul 7, 2021
1 parent 40c73fc commit 2e87fb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions l9plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ func (request *WebPluginRequest) HasTag(tag string) bool {
return false
}

func (request *WebPluginRequest) HasAnyTags(tags []string) bool {
for _, tag := range tags {
if request.HasTag(tag) {
return true
}
}
return false
}

func (request *WebPluginRequest) AddTags(tags []string) {
for _, tag := range tags {
request.AddTag(tag)
Expand Down

0 comments on commit 2e87fb5

Please sign in to comment.