import { BaseCommand } from '../../modules/ace/main.ts'; /** * Command to create a new Edge.js template file. * Edge templates are used for rendering HTML views in your web application, * supporting layouts, partials, components, and template inheritance. * * @example * ``` * ace make:view home * ace make:view users/profile * ace make:view components/navbar * ace make:view layouts/app * ``` */ export default class MakeView extends BaseCommand { /** * The command name */ static commandName: string; /** * The command description */ static description: string; /** * Name of the template file to create */ name: string; /** * Read the contents from this file (if the flag exists) and use * it as the raw contents */ contentsFrom: string; /** * Forcefully overwrite existing files */ force: boolean; /** * The stub template file to use for generating the Edge template */ protected stubPath: string; /** * Execute the command to create a new Edge.js template file. * Generates the template file in the views directory. */ run(): Promise; }