MCPcopy Index your code
hub / github.com/kopia/kopia / askForExistingRepositoryPassword

Function askForExistingRepositoryPassword

cli/password.go:57–66  ·  view source on GitHub ↗
(out io.Writer)

Source from the content-addressed store, hash-verified

55}
56
57func askForExistingRepositoryPassword(out io.Writer) (string, error) {
58 p1, err := askPass(out, "Enter password to open repository: ")
59 if err != nil {
60 return "", err
61 }
62
63 fmt.Fprintln(out) //nolint:errcheck
64
65 return p1, nil
66}
67
68func (c *App) setPasswordFromToken(pwd string) {
69 c.password = pwd

Callers 1

getPasswordFromFlagsMethod · 0.85

Calls 1

askPassFunction · 0.85

Tested by

no test coverage detected