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

Function CLIContextFromContext

internal/command/inject.go:34–36  ·  view source on GitHub ↗

CLIContextFromContext returns a pointer to a cli.Context It panics when the cli.Context is not set.

(ctx context.Context)

Source from the content-addressed store, hash-verified

32// CLIContextFromContext returns a pointer to a cli.Context
33// It panics when the cli.Context is not set.
34func CLIContextFromContext(ctx context.Context) *cli.Context {
35 return ctx.Value(cliCtxKey{}).(*cli.Context)
36}
37
38// wrap wraps a function with middleware using a new context. It returns a cli.ActionFunc with
39// the cli.Context added to the Context.

Callers 15

AllowWildcardsActionFunction · 0.92
DenyWildcardsActionFunction · 0.92
emailActionFunction · 0.92
removeActionFunction · 0.92
dnsActionFunction · 0.92
principalActionFunction · 0.92
commonNamesActionFunction · 0.92
ipActionFunction · 0.92
updatePolicyFunction · 0.92
uriActionFunction · 0.92

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…