wait for keypress on being done; ignore build dir
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -27,3 +27,4 @@ go.work.sum
|
||||
reseed-config.json
|
||||
biorand-seeds/
|
||||
.vscode/launch.json
|
||||
build/
|
||||
7
main.go
7
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()
|
||||
|
||||
Reference in New Issue
Block a user