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

Function configValueBundle

internal/cli/config.go:1151–1165  ·  view source on GitHub ↗
(record configValueRecord)

Source from the content-addressed store, hash-verified

1149}
1150
1151func configValueBundle(record configValueRecord) outputBundle {
1152 return outputBundle{
1153 jsonValue: record,
1154 human: func() (string, error) {
1155 return fmt.Sprintf("%s: %s", record.Path, formatConfigValue(record.Value)), nil
1156 },
1157 toon: func() (string, error) {
1158 return renderToonObject("config_value", []string{configPathKey, hooksValueKey, configRedactedKey}, []string{
1159 record.Path,
1160 formatConfigValue(record.Value),
1161 strconv.FormatBool(record.Redacted),
1162 }), nil
1163 },
1164 }
1165}
1166
1167func configSetBundle(record configSetRecord) outputBundle {
1168 rows := []keyValue{

Callers 1

newConfigGetCommandFunction · 0.85

Calls 2

formatConfigValueFunction · 0.85
renderToonObjectFunction · 0.85

Tested by

no test coverage detected