MCPcopy
hub / github.com/smallstep/cli / UseContext

Function UseContext

utils/cautils/bootstrap.go:37–42  ·  view source on GitHub ↗

UseContext returns true if contexts should be used, false otherwise.

(ctx *cli.Context)

Source from the content-addressed store, hash-verified

35
36// UseContext returns true if contexts should be used, false otherwise.
37func UseContext(ctx *cli.Context) (ret bool) {
38 return step.Contexts().Enabled() ||
39 ctx.IsSet("context") ||
40 ctx.IsSet("authority") ||
41 ctx.IsSet("profile")
42}
43
44// WarnContext outputs a warning informing users about the option to use
45// contexts.

Callers 2

initActionFunction · 0.92
bootstrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…