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

Function runPassword

pkg/cmd/preview/prompter/prompter.go:213–221  ·  view source on GitHub ↗
(p prompter.Prompter, io *iostreams.IOStreams)

Source from the content-addressed store, hash-verified

211}
212
213func runPassword(p prompter.Prompter, io *iostreams.IOStreams) error {
214 fmt.Fprintln(io.Out, "Demonstrating Password Input")
215 safeword, err := p.Password("Safe word?")
216 if err != nil {
217 return err
218 }
219 fmt.Fprintf(io.Out, "Safe word: %s\n", safeword)
220 return nil
221}
222
223func runConfirm(p prompter.Prompter, io *iostreams.IOStreams) error {
224 fmt.Fprintln(io.Out, "Demonstrating Confirmation")

Callers

nothing calls this directly

Calls 1

PasswordMethod · 0.65

Tested by

no test coverage detected