@diagramers/cli
Version:
Diagramers CLI - Command-line tools for managing Diagramers projects
34 lines • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const init_1 = require("./commands/init");
const update_1 = require("./commands/update");
const extend_1 = require("./commands/extend");
const program = new commander_1.Command();
program
.name('diagramers')
.description('CLI tool for managing diagramers projects')
.version('1.0.0');
// Add commands
(0, init_1.initCommand)(program);
(0, update_1.updateCommand)(program);
(0, extend_1.extendCommand)(program);
// Add help text
program.addHelpText('after', `
Examples:
$ diagramers init api my-new-project
$ diagramers init admin my-admin-dashboard
$ diagramers update
$ diagramers extend --feature auth
$ diagramers extend --module product --crud
$ diagramers extend --table category --fields name,description
$ diagramers extend --relation user-posts --type mongodb
$ diagramers extend --list
`);
program.parse();
// If no command is provided, show help
if (!process.argv.slice(2).length) {
program.outputHelp();
}
//# sourceMappingURL=index.js.map