feat: add git push flag to commands

This commit is contained in:
Slug-Boi
2024-12-14 00:09:59 +01:00
parent 8522fefa86
commit 33221e234b
3 changed files with 36 additions and 10 deletions
+12
View File
@@ -82,6 +82,18 @@ func GitWrapper(commit string, flags []string) {
}
}
func GitPush() {
cmd := exec.Command("git", "push")
cmd_output, err := cmd.CombinedOutput()
if err != nil {
println(fmt.Sprint(err) + " : " + string(cmd_output))
} else {
println(string(cmd_output))
}
}
// helper function to add an author to the commit message
func sb_author(committer string) {
sb.WriteString("\nCo-authored-by: ")