import { Command } from "commander"; import { CliStartup } from "../cli-startup"; import { CreateMiddleware } from "../middlewares/create-middleware"; import { BaseCommand } from "./base.command"; import "./base-create"; export class CreateCommand extends BaseCommand { register(command: Command): void { command .command("create") .alias("c") .description("Generate sfa application") .argument("[name]", "Aapplication name") .setCreateOptions() .action( async (name: string, command: Record) => { await new CliStartup({ name }, command).add(CreateMiddleware).run(); } ); } }