feat(form-info): add -Expand parameter for collapsed page drill-down

Pages are collapsed by default showing "(N items)". The new -Expand
parameter allows expanding by name, title, or * for all. A hint line
is shown when collapsed sections exist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-15 19:21:51 +03:00
co-authored by Claude Opus 4.6
parent 9cffa81bcc
commit 1479f944f5
3 changed files with 58 additions and 16 deletions
+12 -1
View File
@@ -23,6 +23,7 @@ allowed-tools:
| Параметр | Обязательный | По умолчанию | Описание |
|-----------|:------------:|--------------|---------------------------------------------|
| FormPath | да | — | Путь к файлу Form.xml |
| Expand | нет | — | Раскрыть свёрнутую секцию по имени, `*` — все |
| Limit | нет | `150` | Макс. строк вывода (защита от переполнения) |
| Offset | нет | `0` | Пропустить N строк (для пагинации) |
@@ -32,6 +33,16 @@ allowed-tools:
powershell.exe -NoProfile -File .claude/skills/form-info/scripts/form-info.ps1 -FormPath "<путь к Form.xml>"
```
Раскрыть содержимое страницы:
```powershell
powershell.exe -NoProfile -File .claude/skills/form-info/scripts/form-info.ps1 -FormPath "<путь>" -Expand "Основное"
```
Раскрыть все свёрнутые секции:
```powershell
powershell.exe -NoProfile -File .claude/skills/form-info/scripts/form-info.ps1 -FormPath "<путь>" -Expand "*"
```
С пагинацией:
```powershell
powershell.exe -NoProfile -File .claude/skills/form-info/scripts/form-info.ps1 -FormPath "<путь>" -Offset 150
@@ -112,7 +123,7 @@ Elements:
| `[Button]` | Button |
| `[CmdBar]` | CommandBar |
| `[Pages]` | Pages |
| `[Page]` | Page (показывает кол-во элементов вместо раскрытия) |
| `[Page]` | Page (свёрнут — показывает кол-во элементов; раскрывается через `-Expand`) |
| `[Popup]` | Popup |
| `[BtnGroup]` | ButtonGroup |