import { Args, Command, Flags } from '@oclif/core';
export default class TemplatePhaseDelete extends Command {
    static description = 'Delete a phase template';
    static examples = [
        '<%= config.bin %> <%= command.id %> my-template',
        '<%= config.bin %> <%= command.id %> my-template --force',
    ];
    static args = {
        id: Args.string({
            description: 'Template ID to delete',
            required: true,
        }),
    };
    static flags = {
        force: Flags.boolean({
            char: 'f',
            description: 'Skip confirmation',
            default: false,
        }),
        json: Flags.boolean({
            char: 'm',
            aliases: ['machine'],
            description: 'Output prompt configuration as JSON (for AI agents/scripts)',
            default: false,
        }),
    };
    async run() {
        const { args, flags } = await this.parse(TemplatePhaseDelete);
        const cmdArgs = [args.id];
        if (flags.force)
            cmdArgs.push('--force');
        if (flags.json)
            cmdArgs.push('--json');
        await this.config.runCommand('phase:template:delete', cmdArgs);
    }
}
