Analyzes an extension in two modes: change overview (Mode A) or transfer check (Mode B).
Parameters
| Parameter | Description | Default |
|---|---|---|
ExtensionPath |
Path to the extension (required) | — |
ConfigPath |
Path to the configuration (required) | — |
Mode |
A (overview) / B (transfer check) |
A |
Command
powershell.exe -NoProfile -File .claude/skills/cfe-diff/scripts/cfe-diff.ps1 -ExtensionPath src -ConfigPath C:\cfsrc\erp -Mode A
Mode A — extension overview
For each object it shows:
[BORROWED]— borrowed: interceptors (&Перед,&После,&ИзменениеИКонтроль,&Вместо), own attributes/tabular sections/forms[OWN]— own: number of attributes, tabular sections, forms
Example output:
[BORROWED] Catalog.Валюты
&ИзменениеИКонтроль("РеквизитыРедактируемыеВГрупповойОбработке") — line 4 in ...
&Перед("ЗагрузитьКурсыВалют") — line 13 in ...
ChildObjects: 1 own attrs, 1 own TS, 3 own forms
[OWN] Catalog.Расш5_Справочник1
Mode B — transfer check
For each &ИзменениеИКонтроль extracts blocks #Вставка/#КонецВставки from the extension and searches for them in the corresponding configuration module.
Statuses:
[TRANSFERRED]— code found in the configuration[NOT_TRANSFERRED]— code not found[NEEDS_REVIEW]— no blocks#Вставкаor the configuration module was not found
Examples
# Обзор — что изменено в расширении
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Mode A
# Проверка переноса — все ли #Вставка перенесены
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Mode B