log the lists to be used

This commit is contained in:
Viet Huynh
2023-09-19 01:32:01 +07:00
parent ae9afe3b61
commit f4868b5946
+7 -1
View File
@@ -17,7 +17,13 @@ const listType = process.argv[2];
const downloadLists = async (filename, urls) => {
await downloadFiles(resolve(`./${filename}`), urls);
console.log(
`Done. The ${filename} file contains merged data from ${urls.length} list(s).`
`Done. The ${filename} file contains merged data from the following list(s):`
);
console.log(
urls.reduce(
(previous, current, index) => previous + `${index + 1}. ${current}\n`,
""
)
);
};