pkg/kt/command/forward.go
Function parsePort
has 6 return statements (exceeds 4 allowed). Open
Open
func parsePort(args []string) (localPort int, remotePort int, err error) {
if len(args) < 2 {
// port not specified
return -1, -1, nil
} else if count := strings.Count(args[1], ":"); count == 0 {
Function NewForwardCommand
has 6 return statements (exceeds 4 allowed). Open
Open
func NewForwardCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "forward",
Short: "Redirect local port to a service or any remote address",
PreRunE: func(cmd *cobra.Command, args []string) error {
Function Forward
has 5 return statements (exceeds 4 allowed). Open
Open
func Forward(args []string) error {
ch, err := general.SetupProcess(util.ComponentForward)
if err != nil {
return err
}