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

Method Password

internal/prompter/huh_prompter.go:155–162  ·  view source on GitHub ↗
(prompt string)

Source from the content-addressed store, hash-verified

153}
154
155func (p *huhPrompter) Password(prompt string) (string, error) {
156 form, result := p.buildPasswordForm(prompt)
157 err := p.runForm(form)
158 if err != nil {
159 return "", err
160 }
161 return *result, nil
162}
163
164func (p *huhPrompter) buildConfirmForm(prompt string, defaultValue bool) (*huh.Form, *bool) {
165 result := defaultValue

Callers

nothing calls this directly

Calls 2

buildPasswordFormMethod · 0.95
runFormMethod · 0.95

Tested by

no test coverage detected