summaryrefslogtreecommitdiffstats
path: root/pkg/commands/tags.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/tags.go')
-rw-r--r--pkg/commands/tags.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/commands/tags.go b/pkg/commands/tags.go
new file mode 100644
index 000000000..f7b26d8df
--- /dev/null
+++ b/pkg/commands/tags.go
@@ -0,0 +1,13 @@
+package commands
+
+func (c *GitCommand) CreateLightweightTag(tagName string, commitSha string) error {
+ return c.OSCommand.RunCommand("git tag %s %s", tagName, commitSha)
+}
+
+func (c *GitCommand) DeleteTag(tagName string) error {
+ return c.OSCommand.RunCommand("git tag -d %s", tagName)
+}
+
+func (c *GitCommand) PushTag(remoteName string, tagName string) error {
+ return c.OSCommand.RunCommand("git push %s %s", remoteName, tagName)
+}