Enable push feature

This commit is contained in:
2025-03-29 23:06:59 +03:00
parent 18a6569dcc
commit 0f8d2eb16c

View File

@@ -186,6 +186,7 @@ func main() {
noCommit := flag.Bool("no-commit", false, "Do not create a commit")
tag := flag.Bool("tag", false, "Add a git tag")
noTag := flag.Bool("no-tag", false, "Do not add a git tag")
push := flag.Bool("push", false, "Force push to repository")
flag.Parse()
// Обработка флагов
@@ -217,6 +218,10 @@ func main() {
gitTag(bc, newVersion)
}
if *push {
gitPush(bc, newVersion)
}
// Обновляем конфигурационный файл
if err := updateConfigFile(cfg_name, newVersion); err != nil {
log.Printf("Error updating config file: %v", err)