wait for keypress on being done; ignore build dir

This commit is contained in:
2024-11-29 00:06:10 +01:00
parent 5bcbe28ded
commit dee766c8f1
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@@ -27,3 +27,4 @@ go.work.sum
reseed-config.json
biorand-seeds/
.vscode/launch.json
build/

View File

@@ -270,7 +270,14 @@ func unzipArchiveToDestination(zipFile string, dest string) error {
return nil
}
func waitForKeyPress() {
fmt.Println("Press any key to continue...")
bufio.NewReader(os.Stdin).ReadBytes('\n')
}
func main() {
defer waitForKeyPress()
fmt.Println("Generating new seed...")
config, err := getConfiguration()