@schemifyjs/cli
Version:
Official CLI for SchemifyJS.
13 lines (12 loc) • 407 B
JavaScript
import { executeNewCommand } from './new.executor.js';
export function registerNewCommand(program) {
program
.command('new <name>')
.alias('n')
.description('Generate Schemify application.')
.option('-p, --path <path>', 'Custom path to create the project in')
.showHelpAfterError()
.action((name, cmd) => {
executeNewCommand(name, cmd);
});
}