Do not Println on get

This commit is contained in:
斟酌 鵬兄 2023-10-09 05:08:18 +09:00
parent 73b0afcec2
commit bff81985af
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ func usage(stdfd *os.File) {
_space := strings.Repeat(" ", len(_name))
fmt.Fprintf(stdfd, "Usage: %s get\n", _name)
fmt.Fprintf(stdfd, " %s set passphrase\n", _space)
fmt.Fprintf(stdfd, " %s del\n", _space)
fmt.Fprintf(stdfd, " %s help\n", _space)
}
@ -57,7 +58,7 @@ func main() {
case "get":
cred, _err := getAuthSecret()
if _err == nil {
fmt.Println(string(cred.CredentialBlob))
fmt.Print(string(cred.CredentialBlob))
os.Exit(0)
}
err = _err