MCPcopy Create free account
hub / github.com/HashLoad/boss / getPass

Function getPass

cmd/login.go:96–104  ·  view source on GitHub ↗
(description string)

Source from the content-addressed store, hash-verified

94}
95
96func getPass(description string) string {
97 fmt.Print(description + ": ")
98
99 bytePassword, err := term.ReadPassword(int(syscall.Stdin))
100 if err != nil {
101 msg.Die("Error on get pass: %s", err)
102 }
103 return string(bytePassword)
104}
105
106func getSshKeyPath() string {
107 usr, e := user.Current()

Callers 1

loginFunction · 0.85

Calls 2

DieFunction · 0.92
PrintMethod · 0.80

Tested by

no test coverage detected