style: rename variable for expressivity

This commit is contained in:
Julien Oculi 2024-01-16 11:18:23 +01:00
parent 167ddd4579
commit 05add55d5d

View file

@ -23,10 +23,10 @@ await new Command()
{ required: true },
)
.arguments('<csv:file>')
.action(async ({ group, endpoint, apiKey, onlyAdd }, domain) => {
.action(async ({ group, endpoint, apiKey, onlyAdd }, filePath) => {
const redmine = new Redmine({ endpoint, apiKey })
const file = await Deno.readTextFile(domain)
const file = await Deno.readTextFile(filePath)
const csv = CSV.parse(file.replaceAll(';', ','), {
skipFirstRow: true,