MCPcopy
hub / github.com/cli/cli / defaultPromptConfig

Function defaultPromptConfig

pkg/surveyext/editor_test.go:151–188  ·  view source on GitHub ↗

survey doesn't expose this

()

Source from the content-addressed store, hash-verified

149
150// survey doesn't expose this
151func 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
190type testTerminal struct {
191 pty *os.File

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected