()
| 86 | } |
| 87 | |
| 88 | func init() { |
| 89 | connectCmd.SetHelpFunc(wrapHelp(helpmenus.RenderConnectHelp)) |
| 90 | |
| 91 | rootCmd.AddCommand(connectCmd) |
| 92 | connectCmd.Flags().StringSliceVarP(&tunnelPorts, "tunnel", "t", []string{}, "Port forwarding (can specify multiple times: -t 8080 -t 3000)") |
| 93 | connectCmd.Flags().BoolVar(&debugMode, "debug", false, "Show detailed timing breakdown") |
| 94 | _ = connectCmd.Flags().MarkHidden("debug") //nolint:errcheck // flag hiding failure is non-fatal |
| 95 | } |
| 96 | |
| 97 | func runConnect(instanceID string, tunnelPortsStr []string, debug bool) error { |
| 98 | return runConnectWithOptions(instanceID, tunnelPortsStr, debug, nil) |
nothing calls this directly
no test coverage detected