MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / readPasswordFromTerminal

Function readPasswordFromTerminal

app/cli/cmd/terminalunix.go:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25)
26
27func readPasswordFromTerminal() ([]byte, error) {
28 token, err := term.ReadPassword(syscall.Stdin)
29 if err != nil {
30 return nil, fmt.Errorf("retrieving password from stdin: %w", err)
31 }
32
33 return token, nil
34}

Callers 1

headlessAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected