MCPcopy Create free account
hub / github.com/cli/cli / newForm

Method newForm

internal/prompter/huh_prompter.go:22–27  ·  view source on GitHub ↗
(groups ...*huh.Group)

Source from the content-addressed store, hash-verified

20}
21
22func (p *huhPrompter) newForm(groups ...*huh.Group) *huh.Form {
23 return huh.NewForm(groups...).
24 WithTheme(huh.ThemeFunc(huh.ThemeBase16)).
25 WithInput(p.stdin).
26 WithOutput(p.stdout)
27}
28
29func (p *huhPrompter) runForm(form *huh.Form) error {
30 err := form.Run()

Callers 10

buildSelectFormMethod · 0.95
buildMultiSelectFormMethod · 0.95
buildInputFormMethod · 0.95
buildPasswordFormMethod · 0.95
buildConfirmFormMethod · 0.95
buildAuthTokenFormMethod · 0.95

Calls 1

WithThemeMethod · 0.80

Tested by

no test coverage detected