TUN-3924: Removed db-connect command. Added a placeholder handler for this command that informs users that command is no longer supported.

This commit is contained in:
Igor Postelnik
2021-02-16 16:09:27 -06:00
parent d7c4a89106
commit a8ae6de213
300 changed files with 23 additions and 345335 deletions

View File

@@ -0,0 +1,21 @@
package cliutil
import (
"fmt"
"github.com/urfave/cli/v2"
)
func RemovedCommand(name string) *cli.Command {
return &cli.Command{
Name: name,
Action: ErrorHandler(func(context *cli.Context) error {
return cli.Exit(
fmt.Sprintf("%s command is no longer supported by cloudflared. Consult Argo Tunnel documentation for possible alternative solutions.", name),
-1,
)
}),
Description: fmt.Sprintf("%s is deprecated", name),
Hidden: true,
}
}