(record configValueRecord)
| 1149 | } |
| 1150 | |
| 1151 | func 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 | |
| 1167 | func configSetBundle(record configSetRecord) outputBundle { |
| 1168 | rows := []keyValue{ |
no test coverage detected