(list)
| 286 | } |
| 287 | |
| 288 | function 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 | |
| 303 | function metaDataEdited(host, edited){ |
| 304 | console.log(output.Separator('yellow', 'Edited metadata', true)) |
nothing calls this directly
no test coverage detected