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

Method displayEnvGroup

command/v7/env_command.go:92–98  ·  view source on GitHub ↗
(group map[string]interface{})

Source from the content-addressed store, hash-verified

90}
91
92func (cmd EnvCommand) displayEnvGroup(group map[string]interface{}) {
93 keys := sortKeys(group)
94
95 for _, key := range keys {
96 cmd.UI.DisplayTextLiteral(fmt.Sprintf("%s: %v", key, group[key]))
97 }
98}
99
100func sortKeys(group map[string]interface{}) []string {
101 keys := make([]string, 0, len(group))

Callers 1

ExecuteMethod · 0.95

Calls 2

sortKeysFunction · 0.85
DisplayTextLiteralMethod · 0.65

Tested by

no test coverage detected