]> git.0d.be Git - barnard.git/blobdiff - cmd/barnard/main.go
relicense as GPLv2
[barnard.git] / cmd / barnard / main.go
index c23c2d620af92ccabe72c7476edfdb647a8e0e88..a426c3ec3702de1f5a535d1f767508cca93c13d6 100644 (file)
@@ -1,4 +1,4 @@
-package main
+package main // import "layeh.com/barnard/cmd/barnard"
 
 import (
        "crypto/tls"
@@ -6,16 +6,17 @@ import (
        "fmt"
        "os"
 
-       "github.com/layeh/barnard"
-       "github.com/layeh/barnard/uiterm"
-       "github.com/layeh/gumble/gumble"
-       _ "github.com/layeh/gumble/opus"
+       "layeh.com/barnard"
+       "layeh.com/barnard/uiterm"
+       "layeh.com/gumble/gumble"
+       _ "layeh.com/gumble/opus"
 )
 
 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