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

Function WithClient

internal/tracker/client.go:41–43  ·  view source on GitHub ↗

WithClient returns a copy of given context with the included client.

(ctx context.Context, client Client)

Source from the content-addressed store, hash-verified

39
40// WithClient returns a copy of given context with the included client.
41func WithClient(ctx context.Context, client Client) context.Context {
42 return context.WithValue(ctx, clientContextKey, client)
43}
44
45// NewClient returns the client from the context if set, otherwise a new instance.
46func NewClient(ctx context.Context) Client {

Callers 2

TestTrackFunction · 0.70
TestInEffectDaysFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestTrackFunction · 0.56
TestInEffectDaysFunction · 0.56