plan tasks

This commit is contained in:
Tykayn 2023-03-04 23:57:03 +01:00 committed by tykayn
parent 00b7fdcfef
commit 7bf94e84c8
1 changed files with 8 additions and 0 deletions

View File

@ -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
}