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

Method Input

internal/prompter/huh_prompter.go:136–140  ·  view source on GitHub ↗
(prompt, defaultValue string)

Source from the content-addressed store, hash-verified

134}
135
136func (p *huhPrompter) Input(prompt, defaultValue string) (string, error) {
137 form, result := p.buildInputForm(prompt, defaultValue)
138 err := p.runForm(form)
139 return *result, err
140}
141
142func (p *huhPrompter) buildPasswordForm(prompt string) (*huh.Form, *string) {
143 var result string

Callers

nothing calls this directly

Calls 2

buildInputFormMethod · 0.95
runFormMethod · 0.95

Tested by

no test coverage detected