diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-16 21:49:36 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-21 00:49:25 +0800 |
commit | cf5313f13ee0a149742f1aeb21e920385e97ecd4 (patch) | |
tree | 4fc4627a1b117011047cbadf9c2c15958a8d61a9 /cmd/utils/cmd.go | |
parent | 618991f136d1f7c66d600a20d2519d4caba92e4a (diff) | |
download | go-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.go | 19 |
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 |