From c15344203ab2040d6533747264697d8c73783d63 Mon Sep 17 00:00:00 2001 From: Scott Register Date: Mon, 30 May 2016 11:35:30 -0700 Subject: [PATCH] added server password support as command line arguement (#13) --- cmd/barnard/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/barnard/main.go b/cmd/barnard/main.go index c23c2d6..767269f 100644 --- a/cmd/barnard/main.go +++ b/cmd/barnard/main.go @@ -16,6 +16,7 @@ func main() { // Command line flags server := flag.String("server", "localhost:64738", "the server to connect to") username := flag.String("username", "", "the username of the client") + password := flag.String("password", "", "the password of the server") insecure := flag.Bool("insecure", false, "skip server certificate verification") certificate := flag.String("certificate", "", "PEM encoded certificate and private key") @@ -28,6 +29,7 @@ func main() { } b.Config.Username = *username + b.Config.Password = *password if *insecure { b.TLSConfig.InsecureSkipVerify = true -- 2.39.2