Skip to content

Commit

Permalink
Add deleteTag feature for Vcs (git)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jul 7, 2021
1 parent b5eaedf commit a2d742c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ private object Git : Vcs {
"git tag -a $tag -m \"$annotationMessage\"".executeAndPrint()
}

override fun deleteTag(tag: String) {
"git tag --delete $tag".executeAndPrint()
}

override fun checkoutBranch(branchName: String) {
"git checkout $branchName".executeAndPrint()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface Vcs {
fun isOnBranch(expectedBranchName: String): Boolean
fun commitAllFiles(commitMessage: String)
fun tagAnnotated(tag: String, annotationMessage: String)
fun deleteTag(tag: String)
fun checkoutBranch(branchName: String)
fun pull(repository: String)
fun push(repository: String, withTags: Boolean = false)
Expand Down

0 comments on commit a2d742c

Please sign in to comment.