mirror of
https://github.com/diodeinc/pcb.git
synced 2026-09-14 20:17:19 +08:00
96582b2714
`pcb info` would mix and match absolute vs relative paths for workspace root and board .zen paths. Enforce consistent behavior: - Workspace root: always show full canonical path - Board paths: always relative to workspace root Also, removed the removed redundant directory field. Signed-off-by: akhilles <akhilvelagapudi@gmail.com>
32 lines
573 B
Plaintext
32 lines
573 B
Plaintext
---
|
|
source: crates/pcb/tests/info.rs
|
|
expression: output
|
|
---
|
|
Command: pcb info -f json
|
|
Exit Code: 0
|
|
|
|
--- STDOUT ---
|
|
{
|
|
"root": "<TEMP_DIR>",
|
|
"config": {
|
|
"name": "BoardDiscoveryTest",
|
|
"members": [
|
|
"boards/*",
|
|
"special/custom-board"
|
|
],
|
|
"default_board": "TestBoard"
|
|
},
|
|
"boards": [
|
|
{
|
|
"name": "MainBoard",
|
|
"zen_path": "boards/main-board/main_board.zen"
|
|
},
|
|
{
|
|
"name": "TestBoard",
|
|
"zen_path": "boards/test-board/test_board.zen",
|
|
"description": "Main test board for validation"
|
|
}
|
|
]
|
|
}
|
|
--- STDERR ---
|