MCPcopy Create free account
hub / github.com/compozy/agh / redactedConfigMap

Function redactedConfigMap

internal/cli/config.go:925–935  ·  view source on GitHub ↗
(cfg *aghconfig.Config)

Source from the content-addressed store, hash-verified

923}
924
925func redactedConfigMap(cfg *aghconfig.Config) map[string]any {
926 node, ok := configNodeFromValue(reflect.ValueOf(cfg), "")
927 if !ok {
928 return map[string]any{}
929 }
930 values, ok := node.(map[string]any)
931 if !ok {
932 return map[string]any{}
933 }
934 return values
935}
936
937func configNodeFromValue(value reflect.Value, fieldName string) (any, bool) {
938 value, ok := indirectConfigValue(value)

Callers 3

newConfigShowCommandFunction · 0.85
newConfigListCommandFunction · 0.85
newConfigGetCommandFunction · 0.85

Calls 1

configNodeFromValueFunction · 0.70

Tested by

no test coverage detected