survey doesn't expose this
()
| 149 | |
| 150 | // survey doesn't expose this |
| 151 | func defaultPromptConfig() *survey.PromptConfig { |
| 152 | return &survey.PromptConfig{ |
| 153 | PageSize: 7, |
| 154 | HelpInput: "?", |
| 155 | SuggestInput: "tab", |
| 156 | Icons: survey.IconSet{ |
| 157 | Error: survey.Icon{ |
| 158 | Text: "X", |
| 159 | Format: "red", |
| 160 | }, |
| 161 | Help: survey.Icon{ |
| 162 | Text: "?", |
| 163 | Format: "cyan", |
| 164 | }, |
| 165 | Question: survey.Icon{ |
| 166 | Text: "?", |
| 167 | Format: "green+hb", |
| 168 | }, |
| 169 | MarkedOption: survey.Icon{ |
| 170 | Text: "[x]", |
| 171 | Format: "green", |
| 172 | }, |
| 173 | UnmarkedOption: survey.Icon{ |
| 174 | Text: "[ ]", |
| 175 | Format: "default+hb", |
| 176 | }, |
| 177 | SelectFocus: survey.Icon{ |
| 178 | Text: ">", |
| 179 | Format: "cyan+b", |
| 180 | }, |
| 181 | }, |
| 182 | Filter: func(filter string, value string, index int) (include bool) { |
| 183 | filter = strings.ToLower(filter) |
| 184 | return strings.Contains(strings.ToLower(value), filter) |
| 185 | }, |
| 186 | KeepFilter: false, |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | type testTerminal struct { |
| 191 | pty *os.File |
no test coverage detected