Add action forget (#126)
diff --git a/action.go b/action.go
index c74f7e6..9dcab85 100644
--- a/action.go
+++ b/action.go
@@ -26,6 +26,9 @@
// ActionDelete denotes a delete operation.
ActionDelete Action = "delete"
+
+ // ActionForget denotes a forget operation.
+ ActionForget Action = "forget"
)
// Actions denotes a valid change type.
@@ -105,3 +108,12 @@
func (a Actions) Replace() bool {
return a.DestroyBeforeCreate() || a.CreateBeforeDestroy()
}
+
+// Forget is true if this set of Actions denotes a forget operation.
+func (a Actions) Forget() bool {
+ if len(a) != 1 {
+ return false
+ }
+
+ return a[0] == ActionForget
+}