MCPcopy Create free account
hub / github.com/PaperElectron/Sundry / hostMetadata

Function hostMetadata

cli/interactive.js:271–286  ·  view source on GitHub ↗
(host, arrdata)

Source from the content-addressed store, hash-verified

269}
270
271function hostMetadata(host, arrdata){
272 host = host.split(':')[1];
273 var data = _.chain(arrdata)
274 .filter(function(item) {
275 return item.split(':')[0] === '***data'
276 })
277 .map(function(item) {
278 var s = item.split(':')[1].split(',');
279 return {name: 'meta: ' + s[0] + ' = ' + s[1] , value: item}
280 })
281 .value()
282 data.unshift(separate('yellow', 'Edit Metadata: ' + host));
283 data.unshift({name: chalk.underline.green('Back'), value: 'back'})
284 data.push(separate('yellow'));
285 return data
286}
287
288function hostList(list){
289 list = _.map(list, function(r) {

Callers

nothing calls this directly

Calls 1

separateFunction · 0.85

Tested by

no test coverage detected