[mv3] Provide console feedback that work is ongoing when building

This commit is contained in:
Raymond Hill 2025-04-13 09:04:13 -04:00
parent f51a4c79db
commit 50f87c21ea
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -114,6 +114,9 @@ const urlToFileName = url => {
const fetchText = (url, cacheDir) => {
return new Promise((resolve, reject) => {
process.stdout.clearLine();
process.stdout.cursorTo(0);
process.stdout.write(`Fetching ${url}`);
const fname = urlToFileName(url);
fs.readFile(`${cacheDir}/${fname}`, { encoding: 'utf8' }).then(content => {
log(`\tFetched local ${url}`);
@ -1570,6 +1573,9 @@ async function main() {
homeURL: 'https://github.com/sander85/uBOL-et',
});
process.stdout.clearLine();
process.stdout.cursorTo(0);
writeFile(
`${rulesetDir}/ruleset-details.json`,
`${JSON.stringify(rulesetDetails, null, 1)}\n`