UNPKG

lina-infratech-cli

Version:

A CLI tool for Lina Infratech Developers

23 lines (22 loc) 898 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const chalk_1 = tslib_1.__importDefault(require("chalk")); const figlet_1 = tslib_1.__importDefault(require("figlet")); const commander_1 = require("commander"); const command_loader_1 = tslib_1.__importDefault(require("./commands/command.loader")); console.log(chalk_1.default.green(figlet_1.default.textSync('Lina Infratech', { font: 'Larry 3D 2', }))); const bootstrap = () => { const program = new commander_1.Command(); program .name('Lina CLI') .version(require('../package.json').version, '-v, --version', 'Output the current version.') .usage('<command> [options]') .helpOption('-h, --help', 'Output usage information.'); (0, command_loader_1.default)(program); program.parse(process.argv); }; bootstrap();