MCPcopy
hub / github.com/pterm/pterm / getShortHandles

Method getShortHandles

interactive_confirm_printer.go:169–174  ·  view source on GitHub ↗

getShortHandles returns the short hand answers for the confirmation prompt

()

Source from the content-addressed store, hash-verified

167
168// getShortHandles returns the short hand answers for the confirmation prompt
169func (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
177func (p InteractiveConfirmPrinter) getSuffix() string {

Callers 2

ShowMethod · 0.95
getSuffixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected