From dee766c8f1b91bd928f425184ef998c1e82357ee Mon Sep 17 00:00:00 2001 From: Mate Farkas Date: Fri, 29 Nov 2024 00:06:10 +0100 Subject: [PATCH] wait for keypress on being done; ignore build dir --- .gitignore | 1 + main.go | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 8e40994..ed5cdfa 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ go.work.sum reseed-config.json biorand-seeds/ .vscode/launch.json +build/ \ No newline at end of file diff --git a/main.go b/main.go index a506076..edea9d1 100644 --- a/main.go +++ b/main.go @@ -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()