MCPcopy Create free account
hub / github.com/cloudfoundry/cli / displayStagingEnvironment

Method displayStagingEnvironment

cf/commands/application/env.go:167–183  ·  view source on GitHub ↗
(envVars map[string]interface{})

Source from the content-addressed store, hash-verified

165}
166
167func (cmd *Env) displayStagingEnvironment(envVars map[string]interface{}) {
168 if len(envVars) == 0 {
169 cmd.ui.Say(T("No staging env variables have been set"))
170 return
171 }
172
173 keys := make([]string, 0, len(envVars))
174 for key := range envVars {
175 keys = append(keys, key)
176 }
177 sort.Strings(keys)
178
179 cmd.ui.Say(terminal.EntityNameColor(T("Staging Environment Variable Groups:")))
180 for _, key := range keys {
181 cmd.ui.Say("%s: %v", key, envVars[key])
182 }
183}

Callers 1

ExecuteMethod · 0.95

Calls 2

EntityNameColorFunction · 0.92
SayMethod · 0.65

Tested by

no test coverage detected