Accept embedded layer names in CLI selectors

Resolve scope and display selectors against both revisions before projection. Keep display-only selection on the large-file comparison path and list numeric choices for ambiguous names.
This commit is contained in:
Jan Petykiewicz 2026-11-18 23:07:22 -08:00
commit 87683db7e8

View file

@ -103,7 +103,7 @@ pheon diff before.gds after.gds --cell RESONATOR
| --- | --- |
| `--top NAME` | The named cell and its reachable descendants in each revision. |
| `--cell NAME` | One cell, including its references, without its descendants. |
| `--layer L/T` | Objects on a numeric layer/type pair, plus references leading to that layer. |
| `--layer L/T\|NAME` | Objects on the selected layer/type pair, plus references leading to that layer. |
Selectors combine: `--top CHIP --cell RESONATOR` selects that cell within CHIP's
subtree. A name absent from both revisions is an error; presence on only one
@ -112,10 +112,14 @@ layer, but library fields and metadata-version diagnostics remain relevant.
The complete input is parsed before scope selection, so malformed records
outside the scope still fail the command.
Both `--layer` and `--show-layer` accept exact, case-sensitive names from the
embedded metadata in either revision. If a name refers to several numeric pairs,
Pheon lists the choices. A valid numeric pair always selects that pair directly.
## Control report detail
```sh
pheon diff before.gds after.gds --show-cell RESONATOR --show-layer 1/0
pheon diff before.gds after.gds --show-cell RESONATOR --show-layer WG
pheon diff before.gds after.gds --hierarchy mermaid --depth 4
```