/**
 * Add enhanced help text to a command with examples, output format, related commands, and notes
 */
export function addEnhancedHelp(command, options) {
    command.addHelpText('after', () => {
        let text = '';
        if (options.examples && options.examples.length > 0) {
            text += '\nExamples:\n';
            options.examples.forEach(ex => {
                text += `  ${ex}\n`;
            });
        }
        if (options.outputJson) {
            text += '\nOutput (JSON):\n';
            const lines = options.outputJson.split('\n');
            lines.forEach(line => {
                text += `  ${line}\n`;
            });
        }
        if (options.relatedCommands && options.relatedCommands.length > 0) {
            text += '\nRelated Commands:\n';
            options.relatedCommands.forEach(rc => {
                const cmd = `gen ${rc.command}`.padEnd(30);
                text += `  ${cmd} ${rc.description}\n`;
            });
        }
        if (options.notes && options.notes.length > 0) {
            text += '\nNotes:\n';
            options.notes.forEach(note => {
                text += `  - ${note}\n`;
            });
        }
        return text;
    });
    return command;
}
//# sourceMappingURL=helpText.js.map