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

Function resolveConnectClient

cmd/connect.go:42–47  ·  view source on GitHub ↗
(opts *connectOptions, token, baseURL string)

Source from the content-addressed store, hash-verified

40}
41
42func resolveConnectClient(opts *connectOptions, token, baseURL string) api.ConnectClient {
43 if opts != nil && opts.client != nil {
44 return opts.client
45 }
46 return api.NewClient(token, baseURL)
47}
48
49func resolveSessionRunner(opts *connectOptions) func(ctx context.Context, cfg utils.SessionConfig) error {
50 if opts != nil && opts.sessionRunner != nil {

Callers 1

runConnectWithOptionsFunction · 0.85

Calls 1

NewClientFunction · 0.92

Tested by

no test coverage detected