You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/cmd/client.go
+8-8
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ import (
5
5
"fmt"
6
6
"github.com/jsiebens/brink/internal/client"
7
7
"github.com/jsiebens/brink/internal/util"
8
-
"github.com/muesli/coral"
9
8
"github.com/sirupsen/logrus"
9
+
"github.com/spf13/cobra"
10
10
"golang.org/x/sys/execabs"
11
11
"io/ioutil"
12
12
"net"
@@ -22,16 +22,16 @@ var (
22
22
showQRbool
23
23
)
24
24
25
-
funcregisterProxyFlags(command*coral.Command) {
25
+
funcregisterProxyFlags(command*cobra.Command) {
26
26
command.Flags().StringVarP(&proxyAddrFlag, "proxy-addr", "r", "", fmt.Sprintf("Addr of the Brink proxy. This can also be specified via the environment variable %s.", BrinkProxyAddr))
27
27
command.Flags().BoolVar(&tlsSkipVerify, "tls-skip-verify", false, "Disable verification of TLS certificates, highly discouraged as it decreases the security of data transmissions.")
28
28
command.Flags().StringVar(&caFile, "ca-file", "", "Path on the local disk to a single PEM-encoded CA certificate to verify the proxy or server SSL certificate.")
29
29
command.Flags().BoolVar(&noBrowser, "no-browser", false, "Disable the usage of a browser, just print the login URL")
30
30
command.Flags().BoolVar(&showQR, "qr", false, "Show QR code for login URLs")
31
31
}
32
32
33
-
funcconnectCommand() *coral.Command {
34
-
command:=&coral.Command{
33
+
funcconnectCommand() *cobra.Command {
34
+
command:=&cobra.Command{
35
35
Use: "connect",
36
36
Short: "Start a tunnel to a proxy for TCP forwarding through which another process can create a connection (eg. SSH, PostgreSQL) to a remote target.",
command.Flags().Uint64VarP(&listenPort, "listen-port", "p", 0, "Port on which the client should bind and listen for connections that should be tunneled.")
49
49
command.Flags().BoolVarP(&listenOnStdin, "listen-on-stdin", "W", false, "If true, the standard input and standard output on the client is forward to the target over the tunnel.")
0 commit comments