summaryrefslogtreecommitdiffstats
path: root/pkg/commands/models/tag.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:28:39 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:48:49 +1000
commitce6f8ed1bcf85204aadb14d583c5f01f96ac4e49 (patch)
tree99cc821e03883c2cd7821e64b41e0d9778f51082 /pkg/commands/models/tag.go
parent83748d78f875de8ddf7786e17ec59a1825a65c1f (diff)
move models folder into commands folder
Diffstat (limited to 'pkg/commands/models/tag.go')
-rw-r--r--pkg/commands/models/tag.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/commands/models/tag.go b/pkg/commands/models/tag.go
new file mode 100644
index 000000000..2fb024e66
--- /dev/null
+++ b/pkg/commands/models/tag.go
@@ -0,0 +1,18 @@
+package models
+
+// Tag : A git tag
+type Tag struct {
+ Name string
+}
+
+func (t *Tag) RefName() string {
+ return t.Name
+}
+
+func (t *Tag) ID() string {
+ return t.RefName()
+}
+
+func (t *Tag) Description() string {
+ return "tag " + t.Name
+}