A self hosted solution for privately rating and reviewing different sorts of media
at master 624 B view raw
1#! /usr/bin/env node 2import { Command } from 'commander'; 3const program = new Command(); 4 5import { populateCountries, populateLanguages } from './actions/populate'; 6 7import { config } from 'dotenv'; 8 9config({ path: '.env' }); 10 11program 12 .command('populate:languages') 13 .description('Populate the database with all languages') 14 .option('-f, --file <path>', 'File path override') 15 .action(populateLanguages); 16 17program 18 .command('populate:countries') 19 .description('Populate the database with all countries') 20 .option('-f, --file <path>', 'File path override') 21 .action(populateCountries); 22 23program.parse(process.argv);