-
Notifications
You must be signed in to change notification settings - Fork 0
/
lector.js
executable file
·61 lines (50 loc) · 1.78 KB
/
lector.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env node
/* eslint-disable no-console */
const program = require('commander');
const path = require('path');
const fs = require('fs');
const intrepeter = require('../cliApp/intrepeter');
const content = fs.readFileSync(path.join(__dirname, '../package.json')).toString();
program
.version(JSON.parse(content).version);
program
.command('new-mvc')
.alias('new')
.description('Create new MVC')
.option('-f, --frontend [v]', 'define frontend')
.option('-b, --backend [v]', 'define backend')
.option('-m, --middleware [v]', 'Protect routes with chinchay middleware and thewall')
.action((table_name, options) => {
intrepeter.new(table_name, options);
});
// program
// .command('qualify')
// .alias('q')
// .description('get all the repositories of a particular organization')
// .option('-n, --number [n]', 'number of times to simulate')
// .option('-c, --country [country]', 'country to qualify')
// .option('-r, --round [round]', 'round from which start to simulate the matches')
// .option('-p, --position [position]', 'position from to which it has to get to qualify')
// .option('-m, --mode [mode]', 'mode to select match to pull down')
// .action(() => {
// console.log('qualify');
// });
//
// program
// .command('simulate')
// .alias('s')
// .description('get all the repositories of a particular organization')
// .option('-n, --number [n]', 'number of times to simulate')
// .option('-r, --round [round]', 'round from which start to simulate the matches')
// .action(() => {
// });
program
.on('--help', () => {
console.log(' For help visit http://chinchay.accionet.net');
});
program
.command('*')
.action((env) => {
console.log('Command does not exists "%s"', env);
});
program.parse(process.argv);