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

Function WarnContext

utils/cautils/bootstrap.go:46–54  ·  view source on GitHub ↗

WarnContext outputs a warning informing users about the option to use contexts.

()

Source from the content-addressed store, hash-verified

44// WarnContext outputs a warning informing users about the option to use
45// contexts.
46func WarnContext() {
47 // If not using contexts but an existing CA has already been configured,
48 // advise the user to use contexts in the future.
49 if _, err := os.Stat(filepath.Join(step.BasePath(), "config", "ca.json")); err == nil {
50 ui.Println("⚠️ It looks like step is already configured to connect to an authority.\n" +
51 "You can use 'contexts' to easily switch between teams and authorities.\n" +
52 "Learn more at https://smallstep.com/docs/step-cli/the-step-command#contexts.\n")
53 }
54}
55
56type bootstrapOption func(bc *bootstrapContext)
57

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…