MCPcopy Index your code
hub / github.com/cli/cli / newForm

Method newForm

internal/prompter/prompter.go:90–96  ·  view source on GitHub ↗
(groups ...*huh.Group)

Source from the content-addressed store, hash-verified

88}
89
90func (p *accessiblePrompter) newForm(groups ...*huh.Group) *huh.Form {
91 return huh.NewForm(groups...).
92 WithTheme(huh.ThemeFunc(huh.ThemeBase16)).
93 WithAccessible(true).
94 WithInput(p.stdin).
95 WithOutput(p.stdout)
96}
97
98// addDefaultsToPrompt adds default values to the prompt string.
99func (p *accessiblePrompter) addDefaultsToPrompt(prompt string, defaultValues []string) string {

Callers 9

SelectMethod · 0.95
MultiSelectMethod · 0.95
InputMethod · 0.95
PasswordMethod · 0.95
ConfirmMethod · 0.95
AuthTokenMethod · 0.95
ConfirmDeletionMethod · 0.95
InputHostnameMethod · 0.95
MarkdownEditorMethod · 0.95

Calls 1

WithThemeMethod · 0.80

Tested by

no test coverage detected