Enable push feature
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user