mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-12 00:44:57 +03:00
eebc2a0679
Addresses user feedback: set-query is all-or-nothing, and editing XML directly is fragile due to escaping. patch-query allows targeted string replacement via "old => new" shorthand, with batch mode support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
602 B
JSON
22 lines
602 B
JSON
{
|
|
"name": "Точечная замена в тексте запроса",
|
|
"preRun": [
|
|
{
|
|
"script": "skd-compile/scripts/skd-compile",
|
|
"input": {
|
|
"dataSets": [{
|
|
"name": "Основной",
|
|
"query": "ВЫБРАТЬ 1 КАК Поле",
|
|
"fields": ["Поле"]
|
|
}]
|
|
},
|
|
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "{workDir}/Template.xml" }
|
|
}
|
|
],
|
|
"params": {
|
|
"templatePath": "Template.xml",
|
|
"operation": "patch-query",
|
|
"value": "1 КАК Поле => Т.Наименование КАК Имя"
|
|
}
|
|
}
|