aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operations/operation.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operations/operation.go')
-rw-r--r--bug/operations/operation.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/bug/operations/operation.go b/bug/operations/operation.go
new file mode 100644
index 00000000..a9cf806f
--- /dev/null
+++ b/bug/operations/operation.go
@@ -0,0 +1,19 @@
+package operations
+
+import (
+ "github.com/MichaelMure/git-bug/bug"
+)
+
+type OperationType int
+
+const (
+ UNKNOW OperationType = iota
+ CREATE
+ SET_TITLE
+ ADD_COMMENT
+)
+
+type Operation interface {
+ OpType() OperationType
+ Apply(snapshot bug.Snapshot) bug.Snapshot
+}