github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/pkg/client/cli/cmd/test_vpn.go (about)

     1  package cmd
     2  
     3  import (
     4  	"github.com/spf13/cobra"
     5  
     6  	"github.com/telepresenceio/telepresence/v2/pkg/errcat"
     7  )
     8  
     9  func testVPN() *cobra.Command {
    10  	cmd := &cobra.Command{
    11  		Use:   "test-vpn",
    12  		Args:  cobra.NoArgs,
    13  		Short: "Test VPN configuration for compatibility with telepresence",
    14  		RunE: func(_ *cobra.Command, _ []string) error {
    15  			return errcat.User.New("the test-vpn command is deprecated." +
    16  				" Please see https://www.getambassador.io/docs/telepresence/latest/reference/vpn" +
    17  				" to learn how to configure telepresence for your VPN.")
    18  		},
    19  	}
    20  	return cmd
    21  }