MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / init

Function init

cmd/connect.go:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func 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
97func runConnect(instanceID string, tunnelPortsStr []string, debug bool) error {
98 return runConnectWithOptions(instanceID, tunnelPortsStr, debug, nil)

Callers

nothing calls this directly

Calls 1

wrapHelpFunction · 0.85

Tested by

no test coverage detected