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

Function deleteBackend

cli/interactive.js:256–269  ·  view source on GitHub ↗
(arrData)

Source from the content-addressed store, hash-verified

254}
255
256function deleteBackend(arrData){
257 var data = _.chain(arrData)
258 .filter(function(item){
259 return item.split(':')[0] !== '***data'
260 })
261 .map(function(item){
262 return {name: 'Ip/hostname:port ' + item, value: item}
263 })
264 .value();
265 data.unshift(separate('red','Backends'));
266 data.unshift({name: chalk.underline.green('Back'), value: 'back'})
267 data.push(separate('red'));
268 return data
269}
270
271function hostMetadata(host, arrdata){
272 host = host.split(':')[1];

Callers

nothing calls this directly

Calls 1

separateFunction · 0.85

Tested by

no test coverage detected