SuperAPI AI Directory

cfe-borrow

Coding & development

View repository

Updated 10-15 17:18

About this skill

/cfe-borrow — Borrowing objects from the configuration

Borrows objects from the main configuration into the extension. Creates XML files with ObjectBelonging=Adopted и ExtendedConfigurationObject, adds an entry to the extension's ChildObjects.

Precondition

The extension must be created (/cfe-init) and contain a valid Configuration.xml.

Parameters

Parameter Description
ExtensionPath Path to the extension directory (required)
ConfigPath Path to the source configuration (required)
Object What to borrow (required), batch via ;;

Format -Object

  • Catalog.Контрагенты — catalog
  • CommonModule.РаботаСФайлами — common module
  • Document.РеализацияТоваров — document
  • Enum.ВидыОплат — enumeration
  • Catalog.X ;; CommonModule.Y ;; Enum.Z — multiple objects All 44 configuration object types are supported.

Command

powershell.exe -NoProfile -File .claude/skills/cfe-borrow/scripts/cfe-borrow.ps1 -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты"

Examples

# Заимствовать один объект
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты"

# Несколько объектов за раз
... -ExtensionPath src -ConfigPath C:\cfsrc\erp -Object "Catalog.Контрагенты ;; CommonModule.ОбщийМодуль ;; Enum.ВидыОплат"

Verification

/cfe-validate <ExtensionPath>