MCPcopy Index your code
hub / github.com/cloudfoundry/cli / NotifyUpdateIfNeeded

Method NotifyUpdateIfNeeded

cf/terminal/ui.go:303–313  ·  view source on GitHub ↗
(config coreconfig.Reader)

Source from the content-addressed store, hash-verified

301}
302
303func (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}

Callers

nothing calls this directly

Calls 5

SayMethod · 0.95
IsMinCLIVersionMethod · 0.65
CLIVersionMethod · 0.65
APIVersionMethod · 0.65
MinCLIVersionMethod · 0.65

Tested by

no test coverage detected