func PressEnter()

in helpers/foundation-deployer/msg/msg.go [38:50]


func PressEnter(msg string) {
	reader := bufio.NewReader(os.Stdin)
	t := "# Press Enter to continue"
	if msg != "" {
		t = msg
	}
	fmt.Print(t)
	_, err := reader.ReadString('\n')
	if err != nil {
		fmt.Printf("# Failed to read string. Error: %s\n", err.Error())
		os.Exit(3)
	}
}