setDefaultHandles initialises the handles
()
| 176 | |
| 177 | // setDefaultHandles initialises the handles |
| 178 | func (p *InteractiveContinuePrinter) setDefaultHandles() { |
| 179 | if p.ShowShortHandles { |
| 180 | p.Handles = p.getShortHandles() |
| 181 | } |
| 182 | |
| 183 | if len(p.Handles) == 0 { |
| 184 | p.Handles = make([]string, len(p.Options)) |
| 185 | copy(p.Handles, p.Options) |
| 186 | p.Handles[p.DefaultValueIndex] = cases.Title(language.Und, cases.Compact).String(p.Handles[p.DefaultValueIndex]) |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | // getSuffix returns the continuation prompt suffix |
| 191 | func (p *InteractiveContinuePrinter) getSuffix() string { |
no test coverage detected