func (ui terminalUI) ShowConfiguration(config *configuration.Configuration) { ui.Say("API endpoint: %s (API version: %s)", EntityNameColor(config.Target), EntityNameColor(config.ApiVersion)) if !config.IsLoggedIn() { ui.Say(NotLoggedInText()) } else { ui.Say("User: %s", EntityNameColor(config.UserEmail())) } if config.HasOrganization() { ui.Say("Org: %s", EntityNameColor(config.OrganizationFields.Name)) } if config.HasSpace() { ui.Say("Space: %s", EntityNameColor(config.SpaceFields.Name)) } }
func (ui TerminalUI) ShowConfiguration(config *configuration.Configuration) { ui.Say("API endpoint: %s (API version: %s)", Yellow(config.Target), Yellow(config.ApiVersion)) if !config.IsLoggedIn() { ui.Say("Logged out. Use '%s' to login.", Yellow("cf login USERNAME")) } else { ui.Say("user: %s", Yellow(config.UserEmail())) } if config.HasOrganization() { ui.Say("org: %s", Yellow(config.Organization.Name)) } if config.HasSpace() { ui.Say("app space: %s", Yellow(config.Space.Name)) } }
func (ui terminalUI) ShowConfiguration(config *configuration.Configuration) { ui.Say("API endpoint: %s (API version: %s)", EntityNameColor(config.Target), EntityNameColor(config.ApiVersion)) if !config.IsLoggedIn() { ui.Say("Logged out, use '%s' to login", CommandColor(cf.Name()+" login USERNAME")) } else { ui.Say("User: %s", EntityNameColor(config.UserEmail())) } if config.HasOrganization() { ui.Say("Org: %s", EntityNameColor(config.Organization.Name)) } if config.HasSpace() { ui.Say("Space: %s", EntityNameColor(config.Space.Name)) } }