UNPKG

dbmaster-cli

Version:

Tool for converting tables between Fifa Soccer Games

26 lines (25 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DistributionCommand = void 0; const interfaces_1 = require("../src/interfaces"); const abstract_command_1 = require("./abstract.command"); class DistributionCommand extends abstract_command_1.AbstractCommand { load(program) { program .command('distribution') .description('Anylyze distribution of Fifa table') .requiredOption('-i, --input <string>', 'Path to fifa folder') .requiredOption('-f, --fifa <string>', `Source version of FIFA (${Object.values(interfaces_1.Fifa).join(' | ')}).`) .requiredOption('-t, --table <string>', `Selected table (${Object.values(interfaces_1.Table).join(' | ')}).`) .option('-c, --column <string>', `Selected column.`) .action(async (command) => { const options = []; options.push({ name: 'input', value: command.input }); options.push({ name: 'table', value: command.table }); options.push({ name: 'fifa', value: command.fifa }); options.push({ name: 'column', value: command.column }); await this.action.handle([], options); }); } } exports.DistributionCommand = DistributionCommand;