maybePrintEnvAuthWarning if the `DOCKER_AUTH_CONFIG` environment variable is set this function will output a warning to stdErr
(out command.Streams)
| 11 | // maybePrintEnvAuthWarning if the `DOCKER_AUTH_CONFIG` environment variable is |
| 12 | // set this function will output a warning to stdErr |
| 13 | func maybePrintEnvAuthWarning(out command.Streams) { |
| 14 | if os.Getenv(configfile.DockerEnvConfigKey) != "" { |
| 15 | tui.NewOutput(out.Err()). |
| 16 | PrintWarning("%[1]s is set and takes precedence.\nUnset %[1]s to restore the CLI auth behaviour.\n", configfile.DockerEnvConfigKey) |
| 17 | } |
| 18 | } |
no test coverage detected
searching dependent graphs…