From 7bf94e84c8f20001107405bca9c0b12a7ea9e06a Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sat, 4 Mar 2023 23:57:03 +0100 Subject: [PATCH] plan tasks --- parse_orgmode_to_json.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/parse_orgmode_to_json.mjs b/parse_orgmode_to_json.mjs index 923ef1e..0520781 100644 --- a/parse_orgmode_to_json.mjs +++ b/parse_orgmode_to_json.mjs @@ -12,6 +12,7 @@ if (!sourceFilePath) { console.error('pas de fichier à ouvrir') } let headers = [] +let tasksObjectsForJsonExport = [] let headersByKind = {} @@ -56,6 +57,8 @@ fs.readFile(sourceFilePath, 'utf8', function (err, data) { console.log('nombre de headers', headers.length) keywordList.forEach(keyword => console.log('nombre de headers',keyword, headersByKind[keyword]?.length)) + writeJsonFile(); + return; }) @@ -76,4 +79,9 @@ function createNewHeaderKind(keyword) { if (!headersByKind[keyword]) { headersByKind[keyword] = []; } +} + + +function writeJsonFile(){ + // TODO write json } \ No newline at end of file