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

Method displayRunningEnvironment

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

Source from the content-addressed store, hash-verified

147}
148
149func (cmd *Env) displayRunningEnvironment(envVars map[string]interface{}) {
150 if len(envVars) == 0 {
151 cmd.ui.Say(T("No running env variables have been set"))
152 return
153 }
154
155 keys := make([]string, 0, len(envVars))
156 for key := range envVars {
157 keys = append(keys, key)
158 }
159 sort.Strings(keys)
160
161 cmd.ui.Say(terminal.EntityNameColor(T("Running Environment Variable Groups:")))
162 for _, key := range keys {
163 cmd.ui.Say("%s: %v", key, envVars[key])
164 }
165}
166
167func (cmd *Env) displayStagingEnvironment(envVars map[string]interface{}) {
168 if len(envVars) == 0 {

Callers 1

ExecuteMethod · 0.95

Calls 2

EntityNameColorFunction · 0.92
SayMethod · 0.65

Tested by

no test coverage detected