WarnContext outputs a warning informing users about the option to use contexts.
()
| 44 | // WarnContext outputs a warning informing users about the option to use |
| 45 | // contexts. |
| 46 | func 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 | |
| 56 | type bootstrapOption func(bc *bootstrapContext) |
| 57 |
no outgoing calls
no test coverage detected
searching dependent graphs…