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

Function defaultConnectOptions

cmd/connect.go:63–74  ·  view source on GitHub ↗
(token, baseURL string)

Source from the content-addressed store, hash-verified

61}
62
63func defaultConnectOptions(token, baseURL string) *connectOptions {
64 return &connectOptions{
65 client: api.NewClient(token, baseURL),
66 skipTTYCheck: false,
67 skipTUI: false,
68 sshConnector: func(ctx context.Context, ip, keyFile string, port, maxWait int) (sshClient, error) {
69 return utils.RobustSSHConnectCtx(ctx, ip, keyFile, port, maxWait)
70 },
71 sessionRunner: utils.RunInteractiveSession,
72 configLoader: LoadConfig,
73 }
74}
75
76var connectCmd = &cobra.Command{
77 Use: "connect [instance_id]",

Callers 1

Calls 2

NewClientFunction · 0.92
RobustSSHConnectCtxFunction · 0.92

Tested by 1