commit bff81985afae7543e845366fc29e031944e8ffb5
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2023-10-08T20:08:18Z |
| subject | Do not Println on get |
commit bff81985afae7543e845366fc29e031944e8ffb5
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2023-10-08T20:08:18Z
Do not Println on get
---
main.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.go b/main.go
index cc38b89..e85329f 100644
--- a/main.go
+++ b/main.go
@@ -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