chamesu
Version:
This package contains all packages of the chat application.
34 lines (29 loc) • 833 B
text/typescript
/*
* 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.
*/
import 'reflect-metadata';
import init from 'module-alias';
import path from "path";
init({
base: path.resolve(__dirname, '../../')
});
import yargs from 'yargs';
import {SetupCommand} from "./commands/setup";
import {UpgradeCommand} from "./commands/upgrade";
import {ResetCommand} from "./commands/reset";
// tslint:disable-next-line:no-unused-expression
yargs
.usage("Usage: $0 <command> [options]")
.demandCommand(1)
.command(new SetupCommand())
.command(new UpgradeCommand())
.command(new ResetCommand())
.strict()
.alias("v", "version")
.help("h")
.alias("h", "help")
.argv;