From f0f5f59bd2731615f55658ffd0ad8bbd6d2e1d4e Mon Sep 17 00:00:00 2001 From: Gerald Baulig Date: Tue, 12 Mar 2024 10:10:03 +0100 Subject: [PATCH] fix(jobs): fix multiple job call rename import.js to dataset.js, set executable header --- import.js => dataset.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename import.js => dataset.js (96%) mode change 100644 => 100755 diff --git a/import.js b/dataset.js old mode 100644 new mode 100755 similarity index 96% rename from import.js rename to dataset.js index 72c9135..e2d5b12 --- a/import.js +++ b/dataset.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node require('dotenv').config(); const fs = require('fs'); const path = require('path'); @@ -76,10 +77,9 @@ async function importData() { .description('import data') .option('-d, --dataset ', 'select dataset domain') .option( - '-j, --job ', + '-j, --job ', 'list of jobs to process', - (v, p) => p.concat(v), - process.env.DB_IMPORT_JOBS?.split(',') ?? CONFIG?.jobs ?? [] + process.env.DB_IMPORT_JOBS?.split(' ') ?? CONFIG?.jobs ?? [] ) .option( '-u, --url ', @@ -102,7 +102,7 @@ async function importData() { .action(commandListJobs); program - .command('datasets') + .command('list') .description('list all available datasets') .action(commandListDatasets);