chore:little fixes and formating and linting and patches

This commit is contained in:
2026-03-31 15:50:54 +02:00
parent a1ce71ffb6
commit 9b197abcfa
815 changed files with 22960 additions and 8982 deletions

View File

@@ -31,14 +31,20 @@ async function main() {
const host =
getArg(values.host) || (await rl.question('Remote Host (IP/Domain): '));
if (!host) throw new Error('Host is required');
if (!host) {
throw new Error('Host is required');
}
const user = getArg(values.user) || (await rl.question('Remote User: '));
if (!user) throw new Error('User is required');
if (!user) {
throw new Error('User is required');
}
const password =
getArg(values.password) || (await rl.question('Remote Password: '));
if (!password) throw new Error('Password is required');
if (!password) {
throw new Error('Password is required');
}
const dbName =
getArg(values.db) ||
@@ -48,17 +54,21 @@ async function main() {
const startDate =
getArg(values.start) ||
(await rl.question('Start Date (YYYY-MM-DD HH:mm:ss): '));
if (!startDate) throw new Error('Start date is required');
if (!startDate) {
throw new Error('Start date is required');
}
const endDate =
getArg(values.end) ||
(await rl.question('End Date (YYYY-MM-DD HH:mm:ss): '));
if (!endDate) throw new Error('End date is required');
if (!endDate) {
throw new Error('End date is required');
}
const projectIdsInput =
getArg(values.projects) ||
(await rl.question(
'Project IDs (comma separated, leave empty for all): ',
'Project IDs (comma separated, leave empty for all): '
));
const projectIds = projectIdsInput
? projectIdsInput.split(',').map((s: string) => s.trim())