style: prettier

This commit is contained in:
2025-03-20 17:27:29 +03:00
parent a42fbb4fc6
commit c490d38d72
54 changed files with 1453 additions and 1107 deletions

View File

@ -122,7 +122,6 @@ export async function sequence(tasks) {
return results;
}
async function tasksRunner(tasks, abort) {
let result = null;
for (const task of tasks) {
@ -144,19 +143,16 @@ export async function sequenceStream(tasks) {
console.log('sequenceStream aborted');
});
return [
tasksRunner(tasks, abort),
abort,
]
return [tasksRunner(tasks, abort), abort];
}
export const getArg = (flag, def) => {
const args = process.argv.slice(2);
const flagIndex = args.findIndex(arg => arg === flag);
const flagIndex = args.findIndex((arg) => arg === flag);
if (flagIndex !== -1 && flagIndex + 1 < args.length) {
return args[flagIndex + 1];
}
return def || null;
};
};

View File

@ -22,7 +22,7 @@ const ANSI_COLORS = {
brightBlue: '\x1b[94m',
brightMagenta: '\x1b[95m',
brightCyan: '\x1b[96m',
pink: '\x1b[38;2;255;182;193m'
pink: '\x1b[38;2;255;182;193m',
};
export class Logger {
@ -55,7 +55,6 @@ export class Logger {
warn(...args) {
if (!this.#canLog('warn')) return;
this.log('WARN', false, ...args);
}
error(...args) {
@ -91,7 +90,6 @@ export class Logger {
simpleWarn(...args) {
if (!this.#canLog('warn')) return;
this.log('WARN', true, ...args);
}
simpleError(...args) {