added count down before exiting the preauth releaser 20 seconds

This commit is contained in:
yurii 2026-01-08 17:11:42 +00:00
parent 7941e2065e
commit 43f1e8787f
3 changed files with 11 additions and 4 deletions

View File

@ -4,6 +4,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"time"
"gitea.futuresens.co.uk/futuresens/hardlink/bootstrap" "gitea.futuresens.co.uk/futuresens/hardlink/bootstrap"
"gitea.futuresens.co.uk/futuresens/hardlink/config" "gitea.futuresens.co.uk/futuresens/hardlink/config"
@ -13,7 +14,7 @@ import (
) )
const ( const (
buildVersion = "1.0.0" buildVersion = "1.0.1"
serviceName = "preauth-release" serviceName = "preauth-release"
) )
@ -36,7 +37,10 @@ func main() {
} }
log.Info("Task completed successfully") log.Info("Task completed successfully")
fmt.Println(". Press Enter to exit...") for i := 20; i > 0; i-- {
fmt.Scanln() fmt.Printf("\rExiting in %2d seconds...", i)
time.Sleep(time.Second)
}
fmt.Println("\rExiting now. ")
os.Exit(0) os.Exit(0)
} }

View File

@ -25,7 +25,7 @@ import (
) )
const ( const (
buildVersion = "1.0.28" buildVersion = "1.0.29"
serviceName = "hardlink" serviceName = "hardlink"
) )

View File

@ -2,6 +2,9 @@
builtVersion is a const in main.go builtVersion is a const in main.go
#### 1.0.29 - 08 January 2026
added count down before exiting the preauth releaser 20 seconds
#### 1.0.28 - 10 December 2025 #### 1.0.28 - 10 December 2025
added preauth releaser added preauth releaser