2021-02-16 22:09:27 +00:00
|
|
|
package cliutil
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RemovedCommand(name string) *cli.Command {
|
|
|
|
return &cli.Command{
|
|
|
|
Name: name,
|
2021-02-05 01:44:03 +00:00
|
|
|
Action: func(context *cli.Context) error {
|
2021-02-16 22:09:27 +00:00
|
|
|
return cli.Exit(
|
|
|
|
fmt.Sprintf("%s command is no longer supported by cloudflared. Consult Argo Tunnel documentation for possible alternative solutions.", name),
|
|
|
|
-1,
|
|
|
|
)
|
2021-02-05 01:44:03 +00:00
|
|
|
},
|
2021-02-16 22:09:27 +00:00
|
|
|
Description: fmt.Sprintf("%s is deprecated", name),
|
2021-03-23 14:30:43 +00:00
|
|
|
Hidden: true,
|
2021-02-16 22:09:27 +00:00
|
|
|
}
|
|
|
|
}
|