UseContext returns true if contexts should be used, false otherwise.
(ctx *cli.Context)
| 35 | |
| 36 | // UseContext returns true if contexts should be used, false otherwise. |
| 37 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…