pkg.re/essentialkaos/ek@v12.36.0+incompatible/terminal/terminal_windows.go (about) 1 // +build windows, !linux, !darwin 2 3 package terminal 4 5 // ////////////////////////////////////////////////////////////////////////////////// // 6 // // 7 // Copyright (c) 2021 ESSENTIAL KAOS // 8 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 9 // // 10 // ////////////////////////////////////////////////////////////////////////////////// // 11 12 import ( 13 "errors" 14 ) 15 16 // ////////////////////////////////////////////////////////////////////////////////// // 17 18 // ErrKillSignal is error type when user cancel input 19 var ErrKillSignal = errors.New("") 20 21 // Prompt is prompt string 22 var Prompt = "> " 23 24 // MaskSymbol is symbol used for masking passwords 25 var MaskSymbol = "*" 26 27 // MaskSymbolColorTag is fmtc color tag used for MaskSymbol output 28 var MaskSymbolColorTag = "" 29 30 // ////////////////////////////////////////////////////////////////////////////////// // 31 32 func ReadUI(title string, nonEmpty bool) (string, error) { 33 return "", nil 34 } 35 36 func ReadAnswer(title, defaultAnswer string) (bool, error) { 37 return true, nil 38 } 39 40 func ReadPassword(title string, nonEmpty bool) (string, error) { 41 return "", nil 42 } 43 44 func PrintErrorMessage(message string, args ...interface{}) { 45 return 46 } 47 48 func PrintWarnMessage(message string, args ...interface{}) { 49 return 50 } 51 52 func PrintActionMessage(message string) { 53 return 54 } 55 56 func PrintActionStatus(status int) { 57 return 58 } 59 60 func AddHstory(ui string) { 61 return 62 } 63 64 func SetCompletionHandler(h func(in string) []string) { 65 return 66 } 67 68 func SetHintHandler(h func(input string) string) { 69 return 70 }