simplifiaction of the flow

This commit is contained in:
felix
2026-09-26 17:05:19 +02:00
parent b1dad3c6e2
commit 41b91e65d9
4 changed files with 121 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ export async function run(query, update, parsed, profile, title, extra = {}, onP
await fetchColumns(query, subjects, parsed, values, null, onProgress);
const rows = assemble(subjects, values, parsed);
const fileName = `${slug(title)}.csv`;
const fileName = extra.fileName || `${slug(title)}.csv`;
const csv = rowsToCsv(rows);
const filePath = writeCsv(fileName, csv);
const specFile = extra.spec && writeSpec(fileName, extra.spec);