func (ui *terminalUI) NotifyUpdateIfNeeded(config coreconfig.Reader) { if !config.IsMinCLIVersion(cf.Version) { ui.Say("") 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", map[string]interface{}{ "APIVer": config.APIVersion(), "CLIMin": config.MinCLIVersion(), "CLIVer": cf.Version, })) } }
func (ui *FakeUI) NotifyUpdateIfNeeded(config coreconfig.Reader) { if !config.IsMinCLIVersion(cf.Version) { ui.Say("Cloud Foundry API version {{.APIVer}} requires CLI version " + config.MinCLIVersion() + " You are currently on version {{.CLIVer}}. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads") } }