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

Function hostList

cli/interactive.js:288–301  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

286}
287
288function hostList(list){
289 list = _.map(list, function(r) {
290 return {name: r.split(':')[1], value: r}
291 });
292 if(!list.length){
293 list.unshift(separate('red', 'No Hosts found!'));
294 }
295 if(list.length > 0) {
296 list.unshift(separate('yellow','Hosts'));
297 list.push(separate('yellow'));
298 }
299 list.unshift({name: chalk.underline.green('Back'), value: 'back'});
300 return list
301}
302
303function metaDataEdited(host, edited){
304 console.log(output.Separator('yellow', 'Edited metadata', true))

Callers

nothing calls this directly

Calls 1

separateFunction · 0.85

Tested by

no test coverage detected