working url return

This commit is contained in:
karl.hudgell 2020-04-25 16:26:34 +01:00
parent f2acd38d0d
commit c95a0b0a50

View File

@ -10,7 +10,13 @@ module.exports = {
common.header('Install Compatible Apps')
const compatibleApps = JSON.parse(fs.readFileSync('./data/compatibleApps.json', 'utf8'));
const value = await inquirer.compatibleApps();
console.log(value)
for (let element of value.removeAppsList) {
for (let element2 of compatibleApps) {
if (element === element2.name) {
console.log(element2.url)
}
}
}
},
removeApps: async () => {
common.header('Remove Apps')