1
0
mirror of https://github.com/rancher/os.git synced 2025-05-30 02:24:24 +00:00
os/cmd/control/util.go
Sven Dowideit 4df962d4b6 make ros log to dmesg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-30 10:51:30 +10:00

20 lines
272 B
Go

package control
import (
"fmt"
"strings"
"github.com/rancher/os/log"
)
func yes(question string) bool {
fmt.Printf("%s [y/N]: ", question)
var line string
_, err := fmt.Scan(&line)
if err != nil {
log.Fatal(err)
}
return strings.ToLower(line[0:1]) == "y"
}