Skip to content
Snippets Groups Projects
Commit 14954ee6 authored by Bob Long's avatar Bob Long Committed by Niall Sheridan
Browse files

allow whitespace in message (#68)

parent 9dbe29a3
No related branches found
No related tags found
No related merge requests found
package main package main
import ( import (
"bufio"
"fmt" "fmt"
"log" "log"
"net" "net"
...@@ -50,9 +51,13 @@ func main() { ...@@ -50,9 +51,13 @@ func main() {
fmt.Print("Enter token: ") fmt.Print("Enter token: ")
var token string var token string
fmt.Scanln(&token) fmt.Scanln(&token)
var message string var message string
fmt.Print("Enter message: ") fmt.Print("Enter message: ")
fmt.Scanln(&message) scanner := bufio.NewScanner(os.Stdin)
if scanner.Scan() {
message = scanner.Text()
}
var cert *ssh.Certificate var cert *ssh.Certificate
if *useGRPC { if *useGRPC {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment