MCPcopy Create free account
hub / github.com/belak/gitdir / CtxExtract

Function CtxExtract

context.go:29–31  ·  view source on GitHub ↗

CtxExtract is a convenience wrapper around the other context convenience methods to pull out everything you'd want from a request.

(ctx context.Context)

Source from the content-addressed store, hash-verified

27// CtxExtract is a convenience wrapper around the other context convenience
28// methods to pull out everything you'd want from a request.
29func CtxExtract(ctx context.Context) (*zerolog.Logger, *Config, *User) {
30 return CtxLogger(ctx), CtxConfig(ctx), CtxUser(ctx)
31}
32
33// CtxSetConfig puts the given Config into the ssh.Context.
34func CtxSetConfig(parent ssh.Context, config *Config) {

Callers 2

TestCtxExtractFunction · 0.85
cmdRepoActionMethod · 0.85

Calls 3

CtxLoggerFunction · 0.85
CtxConfigFunction · 0.85
CtxUserFunction · 0.85

Tested by 1

TestCtxExtractFunction · 0.68