aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/cashier/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/cashier/main.go b/cmd/cashier/main.go
index 78141c2..2b24364 100644
--- a/cmd/cashier/main.go
+++ b/cmd/cashier/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "bufio"
"fmt"
"log"
"net"
@@ -50,9 +51,13 @@ func main() {
fmt.Print("Enter token: ")
var token string
fmt.Scanln(&token)
+
var message string
fmt.Print("Enter message: ")
- fmt.Scanln(&message)
+ scanner := bufio.NewScanner(os.Stdin)
+ if scanner.Scan() {
+ message = scanner.Text()
+ }
var cert *ssh.Certificate
if *useGRPC {