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

Method Password

internal/prompter/prompter.go:36–36  ·  view source on GitHub ↗

Password prompts the user to enter a password.

(prompt string)

Source from the content-addressed store, hash-verified

34 Input(prompt string, defaultValue string) (string, error)
35 // Password prompts the user to enter a password.
36 Password(prompt string) (string, error)
37 // Confirm prompts the user to confirm an action.
38 Confirm(prompt string, defaultValue bool) (bool, error)
39

Callers 2

PasswordMethod · 0.65
TestAccessiblePrompterFunction · 0.65

Implementers 4

PrompterMockinternal/prompter/prompter_mock.go
huhPrompterinternal/prompter/huh_prompter.go
accessiblePrompterinternal/prompter/prompter.go
surveyPrompterinternal/prompter/prompter.go

Calls

no outgoing calls

Tested by 1

TestAccessiblePrompterFunction · 0.52