getShortHandles returns the short hand answers for the confirmation prompt
()
| 167 | |
| 168 | // getShortHandles returns the short hand answers for the confirmation prompt |
| 169 | func (p InteractiveConfirmPrinter) getShortHandles() (string, string) { |
| 170 | y := strings.ToLower(string([]rune(p.ConfirmText)[0])) |
| 171 | n := strings.ToLower(string([]rune(p.RejectText)[0])) |
| 172 | |
| 173 | return y, n |
| 174 | } |
| 175 | |
| 176 | // getSuffix returns the confirmation prompt suffix |
| 177 | func (p InteractiveConfirmPrinter) getSuffix() string { |