MCPcopy Create free account
hub / github.com/conforma/cli / NewClient

Function NewClient

internal/tracker/client.go:46–51  ·  view source on GitHub ↗

NewClient returns the client from the context if set, otherwise a new instance.

(ctx context.Context)

Source from the content-addressed store, hash-verified

44
45// NewClient returns the client from the context if set, otherwise a new instance.
46func NewClient(ctx context.Context) Client {
47 if client, ok := ctx.Value(clientContextKey).(Client); ok && client != nil {
48 return client
49 }
50 return exoClient{}
51}
52
53type exoClient struct{}
54

Callers 1

containsTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected