@authup/server-api
Version:
This is a standalone application.
36 lines • 1.29 kB
JavaScript
/*
* Copyright (c) 2022.
* Author Peter Placzek (tada5hi)
* For the full copyright and license information,
* view the LICENSE file that was distributed with this source code.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
require("reflect-metadata");
const yargs_1 = __importDefault(require("yargs"));
const dotenv_1 = __importDefault(require("dotenv"));
const commands_1 = require("./commands");
dotenv_1.default.config({
debug: false,
});
// eslint-disable-next-line no-unused-expressions,@typescript-eslint/no-unused-expressions
yargs_1.default
.usage('Usage: $0 <command> [options]')
.demandCommand(1)
.command(new commands_1.HealthCheckCommand())
.command(new commands_1.MigrationGenerateCommand())
.command(new commands_1.MigrationRevertCommand())
.command(new commands_1.MigrationStatusCommand())
.command(new commands_1.ResetCommand())
.command(new commands_1.SetupCommand())
.command(new commands_1.StartCommand())
.strict()
.alias('v', 'version')
.help('h')
.alias('h', 'help')
.argv;
//# sourceMappingURL=index.js.map
;