added count down before exiting the preauth releaser 20 seconds
This commit is contained in:
parent
7941e2065e
commit
32be866406
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
2
main.go
2
main.go
@ -25,7 +25,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
buildVersion = "1.0.28"
|
buildVersion = "1.0.29"
|
||||||
serviceName = "hardlink"
|
serviceName = "hardlink"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
builtVersion is a const in main.go
|
builtVersion is a const in main.go
|
||||||
|
|
||||||
|
#### 1.0.29 - 08 January 2025
|
||||||
|
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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user