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

Method displayUserProvidedEnvironment

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

Source from the content-addressed store, hash-verified

129}
130
131func (cmd *Env) displayUserProvidedEnvironment(envVars map[string]interface{}) {
132 if len(envVars) == 0 {
133 cmd.ui.Say(T("No user-defined env variables have been set"))
134 return
135 }
136
137 keys := make([]string, 0, len(envVars))
138 for key := range envVars {
139 keys = append(keys, key)
140 }
141 sort.Strings(keys)
142
143 cmd.ui.Say(terminal.EntityNameColor(T("User-Provided:")))
144 for _, key := range keys {
145 cmd.ui.Say("%s: %v", key, envVars[key])
146 }
147}
148
149func (cmd *Env) displayRunningEnvironment(envVars map[string]interface{}) {
150 if len(envVars) == 0 {

Callers 1

ExecuteMethod · 0.95

Calls 2

EntityNameColorFunction · 0.92
SayMethod · 0.65

Tested by

no test coverage detected