Skip to content

Commit

Permalink
fix(jobs): fix multiple job call
Browse files Browse the repository at this point in the history
rename import.js to dataset.js, set executable header
  • Loading branch information
Gerald Baulig committed Mar 12, 2024
1 parent 47da92a commit f0f5f59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions import.js → dataset.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
require('dotenv').config();
const fs = require('fs');
const path = require('path');
Expand Down Expand Up @@ -76,10 +77,9 @@ async function importData() {
.description('import data')
.option('-d, --dataset <dataset>', 'select dataset domain')
.option(
'-j, --job <job>',
'-j, --job <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 <entry>',
Expand All @@ -102,7 +102,7 @@ async function importData() {
.action(commandListJobs);

program
.command('datasets')
.command('list')
.description('list all available datasets')
.action(commandListDatasets);

Expand Down

0 comments on commit f0f5f59

Please sign in to comment.