@@ -20,12 +20,12 @@ type Action struct {
2020 // Key of the resource the config
2121 Name string
2222
23- Action ActionType
23+ ActionType ActionType
2424}
2525
2626func (a Action ) String () string {
2727 typ , _ := strings .CutSuffix (a .Group , "s" )
28- return fmt .Sprintf (" %s %s %s" , a .Action , typ , a .Name )
28+ return fmt .Sprintf (" %s %s %s" , a .ActionType , typ , a .Name )
2929}
3030
3131// Implements cmdio.Event for cmdio.Log
@@ -50,7 +50,7 @@ const (
5050func Filter (changes []Action , actionType ActionType ) []Action {
5151 var result []Action
5252 for _ , action := range changes {
53- if action .Action == actionType {
53+ if action .ActionType == actionType {
5454 result = append (result , action )
5555 }
5656 }
@@ -68,7 +68,7 @@ func FilterGroup(changes []Action, group string, actionTypes ...ActionType) []Ac
6868 }
6969
7070 for _ , action := range changes {
71- if action .Group == group && actionTypeSet [action .Action ] {
71+ if action .Group == group && actionTypeSet [action .ActionType ] {
7272 result = append (result , action )
7373 }
7474 }
0 commit comments