mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 13:56:27 +01:00
15 lines
214 B
Go
15 lines
214 B
Go
package genny
|
|
|
|
import (
|
|
"bufio"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func Confirm(msg string) bool {
|
|
reader := bufio.NewReader(os.Stdin)
|
|
fmt.Print(msg)
|
|
text, _ := reader.ReadString('\n')
|
|
|
|
return (text == "y\n" || text == "Y\n")
|
|
}
|