From df3ad2b2235fdb375e4e316ab6844e42c4344553 Mon Sep 17 00:00:00 2001 From: Dalton Date: Thu, 14 May 2020 10:26:09 -0500 Subject: [PATCH] AUTH-2529 added deprecation text to db-connect command --- cmd/cloudflared/access/cmd.go | 6 +++--- dbconnect/cmd.go | 12 ++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/cmd/cloudflared/access/cmd.go b/cmd/cloudflared/access/cmd.go index d1e3f854..5b556b56 100644 --- a/cmd/cloudflared/access/cmd.go +++ b/cmd/cloudflared/access/cmd.go @@ -131,12 +131,12 @@ func Commands() []*cli.Command { }, }, { - Name: "ssh", + Name: "tcp", Action: errorHandler(ssh), - Aliases: []string{"rdp", "tcp", "smb"}, + Aliases: []string{"rdp", "ssh", "smb"}, Usage: "", ArgsUsage: "", - Description: `The ssh subcommand sends data over a proxy to the Cloudflare edge.`, + Description: `The tcp subcommand sends data over a proxy to the Cloudflare edge.`, Flags: []cli.Flag{ &cli.StringFlag{ Name: sshHostnameFlag, diff --git a/dbconnect/cmd.go b/dbconnect/cmd.go index e24fec4d..7f55f1ee 100644 --- a/dbconnect/cmd.go +++ b/dbconnect/cmd.go @@ -15,11 +15,19 @@ import ( // The tunnel package is responsible for appending this to tunnel.Commands(). func Cmd() *cli.Command { return &cli.Command{ - Category: "Database Connect (ALPHA)", + Category: "Database Connect (ALPHA) - Deprecated", Name: "db-connect", - Usage: "Access your SQL database from Cloudflare Workers or the browser", + Usage: "deprecated: Access your SQL database from Cloudflare Workers or the browser", ArgsUsage: " ", Description: ` + This feature has been deprecated. + Please see: + + cloudflared access tcp --help + + for setting up database connections to the cloudflare edge. + + Creates a connection between your database and the Cloudflare edge. Now you can execute SQL commands anywhere you can send HTTPS requests.