(config coreconfig.Reader)
| 301 | } |
| 302 | |
| 303 | func (ui *terminalUI) NotifyUpdateIfNeeded(config coreconfig.Reader) { |
| 304 | if !config.IsMinCLIVersion(config.CLIVersion()) { |
| 305 | ui.Say("") |
| 306 | ui.Say(T("Cloud Foundry API version {{.APIVer}} requires CLI version {{.CLIMin}}. You are currently on version {{.CLIVer}}. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads", |
| 307 | map[string]interface{}{ |
| 308 | "APIVer": config.APIVersion(), |
| 309 | "CLIMin": config.MinCLIVersion(), |
| 310 | "CLIVer": config.CLIVersion(), |
| 311 | })) |
| 312 | } |
| 313 | } |
nothing calls this directly
no test coverage detected