MCPcopy Index your code
hub / github.com/smallstep/cli / withCLIContext

Function withCLIContext

internal/command/inject.go:28–30  ·  view source on GitHub ↗

withCLIContext adds a cli.Context to the Context.

(ctx context.Context, clictx *cli.Context)

Source from the content-addressed store, hash-verified

26
27// withCLIContext adds a cli.Context to the Context.
28func withCLIContext(ctx context.Context, clictx *cli.Context) context.Context {
29 return context.WithValue(ctx, cliCtxKey{}, clictx)
30}
31
32// CLIContextFromContext returns a pointer to a cli.Context
33// It panics when the cli.Context is not set.

Callers 2

wrapFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…