1
0
mirror of https://github.com/rancher/os.git synced 2025-09-06 01:01:43 +00:00

get started on the new cli

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-06 12:52:52 +10:00
parent 93cd0877dd
commit dc540a0cf0
6 changed files with 195 additions and 41 deletions

View File

@@ -1,21 +0,0 @@
package control
import (
"bufio"
"fmt"
"os"
"strings"
"github.com/rancher/os/log"
)
func yes(question string) bool {
fmt.Printf("%s [y/N]: ", question)
in := bufio.NewReader(os.Stdin)
line, err := in.ReadString('\n')
if err != nil {
log.Fatal(err)
}
return strings.ToLower(line[0:1]) == "y"
}