-
Notifications
You must be signed in to change notification settings - Fork 0
/
cli.js
49 lines (48 loc) · 2.25 KB
/
cli.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
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
var yargs = require("yargs");
var SchemaSyncCommand_1 = require("./commands/SchemaSyncCommand");
var SchemaDropCommand_1 = require("./commands/SchemaDropCommand");
var QueryCommand_1 = require("./commands/QueryCommand");
var EntityCreateCommand_1 = require("./commands/EntityCreateCommand");
var MigrationCreateCommand_1 = require("./commands/MigrationCreateCommand");
var MigrationRunCommand_1 = require("./commands/MigrationRunCommand");
var MigrationRevertCommand_1 = require("./commands/MigrationRevertCommand");
var MigrationShowCommand_1 = require("./commands/MigrationShowCommand");
var SubscriberCreateCommand_1 = require("./commands/SubscriberCreateCommand");
var SchemaLogCommand_1 = require("./commands/SchemaLogCommand");
var MigrationGenerateCommand_1 = require("./commands/MigrationGenerateCommand");
var VersionCommand_1 = require("./commands/VersionCommand");
var InitCommand_1 = require("./commands/InitCommand");
var CacheClearCommand_1 = require("./commands/CacheClearCommand");
yargs
.usage("Usage: $0 <command> [options]")
.command(new SchemaSyncCommand_1.SchemaSyncCommand())
.command(new SchemaLogCommand_1.SchemaLogCommand())
.command(new SchemaDropCommand_1.SchemaDropCommand())
.command(new QueryCommand_1.QueryCommand())
.command(new EntityCreateCommand_1.EntityCreateCommand())
.command(new SubscriberCreateCommand_1.SubscriberCreateCommand())
.command(new MigrationCreateCommand_1.MigrationCreateCommand())
.command(new MigrationGenerateCommand_1.MigrationGenerateCommand())
.command(new MigrationRunCommand_1.MigrationRunCommand())
.command(new MigrationShowCommand_1.MigrationShowCommand())
.command(new MigrationRevertCommand_1.MigrationRevertCommand())
.command(new VersionCommand_1.VersionCommand())
.command(new CacheClearCommand_1.CacheClearCommand())
.command(new InitCommand_1.InitCommand())
.recommendCommands()
.demandCommand(1)
.strict()
.alias("v", "version")
.help("h")
.alias("h", "help")
.argv;
require("yargonaut")
.style("blue")
.style("yellow", "required")
.helpStyle("green")
.errorsStyle("red");
//# sourceMappingURL=cli.js.map