aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/cmd.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-07-16 21:49:36 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-07-21 00:49:25 +0800
commitcf5313f13ee0a149742f1aeb21e920385e97ecd4 (patch)
tree4fc4627a1b117011047cbadf9c2c15958a8d61a9 /cmd/utils/cmd.go
parent618991f136d1f7c66d600a20d2519d4caba92e4a (diff)
downloadgo-tangerine-cf5313f13ee0a149742f1aeb21e920385e97ecd4.tar.gz
go-tangerine-cf5313f13ee0a149742f1aeb21e920385e97ecd4.tar.zst
go-tangerine-cf5313f13ee0a149742f1aeb21e920385e97ecd4.zip
Update disclaimer
Diffstat (limited to 'cmd/utils/cmd.go')
-rw-r--r--cmd/utils/cmd.go19
1 files changed, 10 insertions, 9 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index b01c79d87..d513778f8 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -58,15 +58,16 @@ func PromptConfirm(prompt string) (bool, error) {
)
prompt = prompt + " [y/N] "
- if liner.TerminalSupported() {
- lr := liner.NewLiner()
- defer lr.Close()
- input, err = lr.Prompt(prompt)
- } else {
- fmt.Print(prompt)
- input, err = bufio.NewReader(os.Stdin).ReadString('\n')
- fmt.Println()
- }
+ // if liner.TerminalSupported() {
+ // fmt.Println("term")
+ // lr := liner.NewLiner()
+ // defer lr.Close()
+ // input, err = lr.Prompt(prompt)
+ // } else {
+ fmt.Print(prompt)
+ input, err = bufio.NewReader(os.Stdin).ReadString('\n')
+ fmt.Println()
+ // }
if len(input) > 0 && strings.ToUpper(input[:1]) == "Y" {
return true, nil