mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-10-01 14:35:54 +03:00
fix(db-load-xml): -AllExtensions с загрузкой частями — отказ на обоих движках
Ветка ibcmd молча игнорировала список и загружала все расширения целиком. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANXwbMUhuRFSCsq2RgmTTm
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
80618f0b93
commit
647c633a9b
@@ -1,4 +1,4 @@
|
||||
# db-load-xml v1.30 — Load 1C configuration from XML files
|
||||
# db-load-xml v1.31 — Load 1C configuration from XML files
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
# NB: *nix-раскладку платформы (/opt/1cv8/<ver>/1cv8, без .exe) знает только .py-порт — PS на *nix не исполняется.
|
||||
<#
|
||||
@@ -717,6 +717,13 @@ if ($Mode -eq "Partial" -and -not $Files -and -not $ListFile) {
|
||||
Write-Host "Error: -Files or -ListFile required for Partial mode" -ForegroundColor Red
|
||||
exit 1
|
||||
}
|
||||
# Частями грузится одно расширение за раз: конфигуратор такое сочетание отвергает сам, а ibcmd
|
||||
# молча загрузил бы все расширения целиком, не глядя в список.
|
||||
if ($Mode -eq "Partial" -and $AllExtensions) {
|
||||
Write-Host "Error: -AllExtensions cannot be combined with a partial load (-Files/-ListFile)" -ForegroundColor Red
|
||||
Write-Host " Загружайте расширения по одному: -Extension <имя>, -ConfigDir — каталог этого расширения." -ForegroundColor Yellow
|
||||
exit 1
|
||||
}
|
||||
|
||||
# --- Temp dir ---
|
||||
$tempDir = Join-Path $env:TEMP "db_load_xml_$(Get-Random)"
|
||||
|
||||
Reference in New Issue
Block a user